Hello,
I wanted to edit all items in all detail tables. Here is the javascript I used:
To my surprise, only the last item in the last details table entered the edit mode and I can't understand why. I have set both AllowMultiRowEdit="true" and AllowMultiRowSelection="true" I have also looked over the 'Going into edit mode with AJAX double-click', but I see a problem there in finding the ID of the detaile table, or at least it's index in the detailesTable array, because the mentioned article only shows how to edit with double click a master table view.
I am also looking for a way to perform a batch update on all of these detail tables. Will EditItems property of the RadGrid hold all currently editable items, even if they are from the detaile tables?
Thanks in advance.
I wanted to edit all items in all detail tables. Here is the javascript I used:
var grid = $find("<%= RadGrid1.ClientID %>"); | |
for (i = 0; i < grid.get_detailTables().length; i++) { | |
var detailTable = grid.get_detailTables()[i]; | |
for (j = 0; j < detailTable.get_dataItems().length; j++) { | |
detailTable.editItem(detailTable.get_dataItems()[j].get_element()); | |
} | |
} |
To my surprise, only the last item in the last details table entered the edit mode and I can't understand why. I have set both AllowMultiRowEdit="true" and AllowMultiRowSelection="true" I have also looked over the 'Going into edit mode with AJAX double-click', but I see a problem there in finding the ID of the detaile table, or at least it's index in the detailesTable array, because the mentioned article only shows how to edit with double click a master table view.
I am also looking for a way to perform a batch update on all of these detail tables. Will EditItems property of the RadGrid hold all currently editable items, even if they are from the detaile tables?
Thanks in advance.