6 Answers, 1 is accepted
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Sep 2009, 06:34 AM
Hi Shiza,
Give a try with the following client side code.
JS:
Hope this helps...
Princy
Give a try with the following client side code.
JS:
var Grid = $find("<%= RadGrid2.ClientID %>"); |
var MasterTable=Grid.get_masterTableView(); |
alert(MasterTable) |
for(var i=0;i< MasterTable.get_dataItems().length;i++) |
{ |
var row = MasterTable.get_dataItems()[i]; |
if(row.get_expanded() == false) |
{ |
row.set_expanded(true); |
} |
else |
row.set_expanded(false); |
} |
Hope this helps...
Princy
0
Shiza A V
Top achievements
Rank 1
answered on 08 Sep 2009, 07:49 AM
Hi,
ThanksIt worked
0
Bryan Strader
Top achievements
Rank 2
answered on 02 Nov 2009, 06:35 PM
I have used this and it seems to work on one grid. On another grid I am using, I get an error -Error: 'title' is null or not an object
Any idea? it seems to come from within the row.set_expanded(true); statement...?
Any idea? it seems to come from within the row.set_expanded(true); statement...?
0
Bryan Strader
Top achievements
Rank 2
answered on 02 Nov 2009, 10:47 PM
The error I'm getting is because my items are grouped, is there a way to account for this using this method?
0
Shiza A V
Top achievements
Rank 1
answered on 03 Nov 2009, 04:08 AM
Sorry, I have no idea, I have not used grouping in my telerik grid
Thanks
Shiza
0
Eric
Top achievements
Rank 1
answered on 02 Jun 2017, 06:51 PM
I'm trying to follow along with this - but I'm getting an error:
cannot read property 'get_masterTableView' of undefined.
It seems my selector is incorrect?
I'm working in a CMS and do not have access to the underlying structure. I've got a nested radGrid that I'm trying to have expand automatically upon page load.