-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
take a look at this one:
Grid - Inline Editing
I think at least you can use tab to jump to the next one.
Asked: 2012-04-20 15:19:20 +0800
Seen: 303 times
Last updated: Apr 24 '12