I have a grid that I want to update from an open RadWindow. I am using the following example:
http://www.telerik.com/DEMOS/ASPNET/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=window
Here is my javascript:
function ShowForm(site, form, rowIndex) {
if (form == 'refViewer') {
var grid = window["<%= radData.ClientID %>"];
alert(grid);
alert(grid.MasterTableView);
// var rowControl = grid.MasterTableView.Rows[rowIndex].Control;
// grid.MasterTableView.SelectRow(rowControl, true);
}
window.radopen(site, form);
return false;
}
I find the grid no problem. But it fails on the grid.MasterTableView. I have yet, in any online example, been able to get the given Javascript to function. I have had to modify it myself to get it to work. In this case, I can manually find the mastertable by $get('radData_ctl00') but then it fails on the SelectRow method.
Is there some reference I am missing? I have the Q2 version of the controls, so I had hoped my problems from Q1 would go away.
Thanks!
Sean