This question is locked. New answers and comments are not allowed.
I have a grid that has a details view. I'd like to make it so that when they click on edit, the row's details view will expand.
What I have tried is something like this:
And the script that handles the event:
The form property was the only property that I could see having anything specific to the row being edited, and when I evaluate the row variable, it does match up with the row.
What would be the proper way of doing what I'm trying to accomplish?
What I have tried is something like this:
.ClientEvents(events => events.OnEdit("grid_onEdit"))
And the script that handles the event:
function
grid_onEdit(e) {
var
grid = $(e.target).data(
'tGrid'
);
var
row = $(e.form).parent().parent();
grid.expandRow(row);
}
The form property was the only property that I could see having anything specific to the row being edited, and when I evaluate the row variable, it does match up with the row.
What would be the proper way of doing what I'm trying to accomplish?