Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select a RadGrid Row (Client-side) inside RadWindows

I have a RadGrid inside of RadWindow. I need to select a Radgrid row in clientside.
How can I do that?

I´m trying to get the radgrid like that:

var masterTable = $find("<%=radgridID.ClientID%>").get_masterTableView();

but always getting null...

Any help?

like image 845
Paul Avatar asked Apr 17 '09 18:04

Paul


1 Answers

I got it... Code :

var oManager = GetRadWindowManager();  
var oWnd = oManager.GetWindowByName("RadWindow1");     
var grid = oWnd.GetContentFrame().contentWindow.$find('RadGrid1') //Get reference to RadGrid 
var masterTable = grid.get_masterTableView();  
masterTable.selectItem(3);  //Select 4th row  
like image 109
Paul Avatar answered Nov 04 '22 02:11

Paul