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

javascript MasterTableView.SelectedRows = undefined

3 Answers 206 Views
Grid
This is a migrated thread and some comments may be shown as answers.
nicole
Top achievements
Rank 1
nicole asked on 23 Jul 2008, 08:36 PM
I am following this forum post:
 http://www.telerik.com/community/forums/thread/b311D-mgcch.aspx

I can get the MasterTableView successfully client side, but when I do this:
var rows = $find(this._gridid).MasterTableView.SelectedRows;
rows is undefined

The grid I am using is a custom rad grid that inherits from RadGrid
public class CustomRadGrid : RadGrid  
 
{  
 
public CustomRadGrid(){  
 
 
ClientSettings.Selecting.EnableDragToSelectRows = false;  
 
ClientSettings.Resizing.AllowColumnResize = true;  
 
MasterTableView.AllowFilteringByColumn = false;  
 
EnableEmbeddedSkins = false;  
 
AllowMultiRowSelection = true;  
 
ClientSettings.Selecting.AllowRowSelect = true;  
 
 
}  
 
}   
 
 


The above snippet is just a portion of my class

Does anyone have any idea why SelectedRows would be undefined?

I originally had this posted in the older (non ajax) forum, so you may see a duplicate of this message there.

Thanks!
Nicole

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Jul 2008, 05:12 AM
Hello nicole,

The client-side API in RadGrid for ASP.NET AJAX is different. Please check this article for more info:
http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chip
Top achievements
Rank 1
answered on 01 Aug 2011, 07:46 PM
The referenced link is broken, and I'm finding a variety of them broken on other articles as well.  Is there any way you can update them?

Thank you.
0
Genti
Telerik team
answered on 04 Aug 2011, 12:13 PM
Hi Chip,

Here's the corrected link of the previous post:
http://www.telerik.com/help/aspnet-ajax/grid-getting-cell-values-for-selected-rows-client-side.html

Kind regards,
Genti
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
nicole
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Chip
Top achievements
Rank 1
Genti
Telerik team
Share this question
or