Hi,
My code opens a rad window when a gridbutton, located at a radgrid as a column, is clicked. In the OnClientClose event of the window it deletes the related row in the grid. I put an alert at the end of script which is wiritten to delete row. I can see that the row is deleted at the grid but when the main window got focused the row comes back. I think I must delete that row after main window has got focused, but there is no such event. I am sure that there is a simple way to do this. I will be pleasured if you help?
Thanks,
delete function
var table = $find("<%= rGrid.ClientID %>").get_masterTableView().get_element();
var row = table.rows[rowInd];
table.deleteRow(rowInd);
var dataItem = $find(row.id);
if (dataItem)
{
dataItem.dispose();
Array.remove($find("<%= rGrid.ClientID %>").get_masterTableView()._dataItems, dataItem);
}
My code opens a rad window when a gridbutton, located at a radgrid as a column, is clicked. In the OnClientClose event of the window it deletes the related row in the grid. I put an alert at the end of script which is wiritten to delete row. I can see that the row is deleted at the grid but when the main window got focused the row comes back. I think I must delete that row after main window has got focused, but there is no such event. I am sure that there is a simple way to do this. I will be pleasured if you help?
Thanks,
delete function
var table = $find("<%= rGrid.ClientID %>").get_masterTableView().get_element();
var row = table.rows[rowInd];
table.deleteRow(rowInd);
var dataItem = $find(row.id);
if (dataItem)
{
dataItem.dispose();
Array.remove($find("<%= rGrid.ClientID %>").get_masterTableView()._dataItems, dataItem);
}