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 retag edit

## 2 Replies

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.

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?

iantsai
2755 1

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");
public void onEvent(Event event) throws Exception {
// do DOWN or UP logic....
}
});



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

Farr
9

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

[hide preview]