Hi,
I am trying to fire the itemcommand server event on RowDoubleClick client event.
Javascript
Code Behind
This gets me the DataKeyValue no problem in Javascript and runs the ItemCommand, but when the ItemCommand fires in the code behind it is acting on the first row in the grid rather than the double clicked row.
How would I have the ItemCommand run on the row that was doubleclicked?
Thanks,
Marc
I am trying to fire the itemcommand server event on RowDoubleClick client event.
Javascript
function RowDblClick(sender, eventArgs) { var dataKeyVal = eventArgs.getDataKeyValue("UserName") sender.get_masterTableView().fireCommand("EditUser", dataKeyVal);}Code Behind
if (e.CommandName == "EditUser"){ GridDataItem item = e.Item as GridDataItem; item.Selected = true; string uName = item.GetDataKeyValue("UserName").ToString();}This gets me the DataKeyValue no problem in Javascript and runs the ItemCommand, but when the ItemCommand fires in the code behind it is acting on the first row in the grid rather than the double clicked row.
How would I have the ItemCommand run on the row that was doubleclicked?
Thanks,
Marc