How do I get a reference to the grid cell which is being edited, when the keydown event of the default numeric editor fires?
Roland
Hey Roland,
This isn't too difficult. Here is some code you can use.
var grid = $find("WebDataGrid1"); var editing = grid.get_behaviors().get_editingCore().get_behaviors().get_cellEditing(); var editCell = editing.get_cellInEditMode();
regards,
David Young
David,
I cannot use $find("WebDataGrid1"), because I have two grids. Is there an other way to get a reference to the grid being edited, or the edited cell?
Thanks in advance,
Hit the wrong button there, sorry.
But if you're using more than one grid then do this:
var grid = $find("<%=WebDataGrid1.ClientID%>");
Thanks for the post. I found it very useful in my implementation.