This is a migrated thread and some comments may be shown as answers.

MasterTableView not found

1 Answer 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 31 Jul 2008, 05:14 PM
I've tried to follow all of th eonline examples, but one thing consistently fails: I cannot access any RadControls via the given Javascript.

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

1 Answer, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 2
answered on 31 Jul 2008, 05:55 PM
http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html

I guess I should have looked in the Ajax articles first...

Thanks for listening!

Sean~
Electronic Arts, Orlando FL
Tags
Grid
Asked by
Sean
Top achievements
Rank 2
Answers by
Sean
Top achievements
Rank 2
Share this question
or