How can you set up the grid, so that when the user tabs, only editable cells are in the tab order?
I started playing with that one, seems on the right track, but gotta find a way to not have it fire when a user just mouse clicks on it.
samuelmpmac said: I have almost the same problem, but i also have to allow the user to add the row (add new row) when pressing the enter key in the last editable cell or when the focus is on the last cell, but the last column is not editable (it's value is set programatically using javascript). Anyone have any idea of how can i do that? I tried some javascript similar to the one posted before, but it didn't work, because i could'nt find any method to tell the grid that i want this add new row to be added (client side). Also it captures the "enter" even if the cell is not in edit mode (only active), so the enter doesn't work to get the cell editable, the routine is executed and everything gets messed up...
I have almost the same problem, but i also have to allow the user to add the row (add new row) when pressing the enter key in the last editable cell or when the focus is on the last cell, but the last column is not editable (it's value is set programatically using javascript). Anyone have any idea of how can i do that? I tried some javascript similar to the one posted before, but it didn't work, because i could'nt find any method to tell the grid that i want this add new row to be added (client side). Also it captures the "enter" even if the cell is not in edit mode (only active), so the enter doesn't work to get the cell editable, the routine is executed and everything gets messed up...
I found this in the CSOM for the Uwg:
The add new row object. Inherited from the row object. All properties and methods from the row object are applicable to the add new row object. Plus there are several new ones.
If any cell in the add new row was changed the method adds a new row to the collection and applies entered data.
Object. Returns the newly added row or null if no row was added to the collection.
Indicates if the add new row is a fixed row on top or on the bottom.
Boolean. Valid for the top rows collection only, if not top collection the method always returns false.
Indicates if the add new row is a fixed row on the bottom.
Indicates if the add new row is a fixed row on top.
Boolean. Indicates if a row object is an add new row's object.
can you try using the client side event CellChangeHandler for the grid and write javascript in this function to change the focus to the cell you want.
This will work even though when you have the web Numeric Editors.
So I started trying this route, and realized I also use webcombos that seem to have non fully implemented onkeydown events. When the event is fired, the keycode is not passed. Anyway to determine which keycode is fired in a webcombo?