Hi,
I need to check if a GridButtonColumn was clicked client-side and I also need to know for which row this was.
Getting the event was easy, I subscribed to the OnCommand client event and check if it is my button:
But how can I access the row in which the button was clicked?
Thanks!
Edit: I just saw how to acccess the row index:
But how can I access the dataKeyValue of this row?
I need to check if a GridButtonColumn was clicked client-side and I also need to know for which row this was.
Getting the event was easy, I subscribed to the OnCommand client event and check if it is my button:
function OnCommand(sender, args) { if (args.get_commandName() == "MyCommand") { args.set_cancel(true); // need to get the current row }}But how can I access the row in which the button was clicked?
Thanks!
Edit: I just saw how to acccess the row index:
var rowIndex = args.get_commandArgument();But how can I access the dataKeyValue of this row?