Hi,
I have a radgrid with edit links to open radwindow to update a record.
It is a modified copy of your code Edit dialog for RadGrid
The differences are:
My Rad Grid is on UserControl
I'm using LinqDataSource for selecting record.
On the "Update", call is made to refreshGrid function call ajaxRequest to rebind the grid.
This works the first time, the second time I cannot open the RadWindow.
The error is "grid is null" in the following function
function ShowEditForm(id, rowIndex) {
var grid = $find("<%= RadGrid1.ClientID %>");
var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);
window.radopen("../FileStorage/Pages/ClientMnt.aspx?ClientId=" + id, "ClientMntDialog");
return false;
}
Anyone any ideas?
Thanks
Peter
I have a radgrid with edit links to open radwindow to update a record.
It is a modified copy of your code Edit dialog for RadGrid
The differences are:
My Rad Grid is on UserControl
I'm using LinqDataSource for selecting record.
On the "Update", call is made to refreshGrid function call ajaxRequest to rebind the grid.
This works the first time, the second time I cannot open the RadWindow.
The error is "grid is null" in the following function
function ShowEditForm(id, rowIndex) {
var grid = $find("<%= RadGrid1.ClientID %>");
var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
grid.get_masterTableView().selectItem(rowControl, true);
window.radopen("../FileStorage/Pages/ClientMnt.aspx?ClientId=" + id, "ClientMntDialog");
return false;
}
Anyone any ideas?
Thanks
Peter