Hi,
Row Edit Template can be activated by double click..etc.
Is there anyway to activate it by Javascript?
Thanks!
David
Hey David,
There is a way to open the row edit template via JavaScript. Let me give you the code.
var grid = $find("WebDataGrid1");
var row = grid.get_rows().get_row(0);
var ret = grid.get_behaviors().get_editingCore().get_behaviors().get_rowEditingTemplate();
ret.enterEditMode(row);
This should get you going. Let me know if you have any problems.
regards,
David Young
The code you rpovided is not working for me. I have similar requirement though.
Hey Rajib,
What code did you try that didn't work? Was it exactly as I had?
-Dave
Hi DesaiDarshan,
The code that I posted is for the Aikido WebDataGrid. If your id is any indication, you are using the UltraWebGrid. You'll either have to convert your grid or post the question in the correct forum.
regards,Dave
hi Dave ,
the code you mentioned is not workin
here is the code :
var grid = document.getElementById("ctl00_ContentPlaceHolder1_xxxx_UltraGridRates"); var row = grid.get_rows().get_row(0); var ret = grid.get_behaviors().get_editingCore().get_behaviors().get_rowEditingTemplate(); ret.enterEditMode(row);
it gives an exception on var row = grid.get_rows().get_row(0);
Please let me know
thanks