0

Grid cells navigation

asked 2012-04-20 15:19:20 +0800

Farr gravatar image Farr
9

Hello, I'm new to ZK. I have tryed the Grid componet demos. I want to know if there is a way to navigate the Grid cells like in a spreadsheet, using the arrow keys up/down/left/right. The cell editing starts only when I press a character key on the keyboard. Is it possible? Thanks

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2012-04-24 08:15:11 +0800

Farr gravatar image Farr
9

Ok, thank you for your answer. I need to replicate the typical "desktop" grid widget behavior (like JTable).

link publish delete flag offensive edit

answered 2012-04-24 02:48:05 +0800

iantsai gravatar image iantsai
2755 1

updated 2012-04-24 02:49:54 +0800

it's possible, but I'm afraid you'll need to implement it by yourself.
the problem is Grid is not spreadsheet, it's not intentionally designed for "matrix inputs" idea.
the conceptual sample code might looks like this:

textbox.setCtrlKeys("#up#down");
	textbox.addEventListener(Events.ON_CTRL_KEY, new EventListener() {		
		public void onEvent(Event event) throws Exception {
                       // do DOWN or UP logic....
                 }
        });

the textbox is a cell inside a grid's row.

link publish delete flag offensive edit

answered 2012-04-23 19:10:02 +0800

Farr gravatar image Farr
9

I want to know if there is a way to navigate the Grid cells like in a spreadsheet, using the arrow keys up/down/left/right. The cell editing starts only when I press a character key on the keyboard. Is it possible?

link publish delete flag offensive edit

answered 2012-04-23 08:51:07 +0800

iantsai gravatar image iantsai
2755 1

take a look at this one:
Grid - Inline Editing

I think at least you can use tab to jump to the next one.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-04-20 15:19:20 +0800

Seen: 303 times

Last updated: Apr 24 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More