Hello,
I have a problem when trying to refresh the grid. when editing a item in the FormTemplate I want the grid to refresh and open the same row that was opened.
I used this javascript function in order to do so:
var refreshGrid = function () {
var masterTable = $find("<%= RadGridTranslations.ClientID %>").get_masterTableView();
var openedItem = masterTable.get_editItems()[0].get_element();
masterTable.editItem(openedItem);
}
My problem is that the grid refresh and only the row in the same index location is opened. for example if the openedItem was in row number 3 , and by the time the grid refreshed , 2 items have been added , after the editItem function the grid is refreshed and open row is number 3 even though the openedItem is number 5.
Any help will be appreciated,
Kind regards.
I have a problem when trying to refresh the grid. when editing a item in the FormTemplate I want the grid to refresh and open the same row that was opened.
I used this javascript function in order to do so:
var refreshGrid = function () {
var masterTable = $find("<%= RadGridTranslations.ClientID %>").get_masterTableView();
var openedItem = masterTable.get_editItems()[0].get_element();
masterTable.editItem(openedItem);
}
My problem is that the grid refresh and only the row in the same index location is opened. for example if the openedItem was in row number 3 , and by the time the grid refreshed , 2 items have been added , after the editItem function the grid is refreshed and open row is number 3 even though the openedItem is number 5.
Any help will be appreciated,
Kind regards.