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

Client Side MasterTableView Reference

4 Answers 132 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Loi
Top achievements
Rank 1
Loi asked on 28 Jul 2008, 06:17 AM
Hi All,

I wonder what am I doing wrong here.

All I want to do is to get a reference to a MasterTableView object on client side.  But it me a message saying "Undefined" when I tried to alert it.  When I tried to access its properties, it doesn't recognize them.  Shouldn't it be an Object though?

var grid = <%= rgDRFormASPPFCaseInfo.ClientID %>;

var tableView = grid.MasterTableView;

alert(tableView);



Please help

Thanks again

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2008, 06:39 AM
Hello Loi,

Try out the following code snippet and see if it works.
 var grid = $find("<%=RadGrid1.ClientID %>");         
 var MasterTable = grid.get_masterTableView(); 

For more information, you can read through the folowing links.
Getting RadGrid client object
Client-side API Reference

Thanks
Princy.
0
Loi
Top achievements
Rank 1
answered on 28 Jul 2008, 12:43 PM
Hello Princy,

I tried the following as suggested, but it doesn't work and it gives me a Javascript error saying "Object expected"

var grid = var grid = $find("<%=rgDRFormASPPFCaseInfo.ClientID %>");

var tableView = grid.get_masterTableView();

alert(tableView);



Thanks
0
Princy
Top achievements
Rank 2
answered on 29 Jul 2008, 05:33 AM
Hi Loi,

Which version of the RadGrid are you using? I would also suggest you to send your aspx.

Princy.
0
Ismail
Top achievements
Rank 1
answered on 07 Oct 2008, 09:08 AM
Hi

I am having the same problem with the MasterTableView,is their a solution?



Thanks
Tags
Grid
Asked by
Loi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Loi
Top achievements
Rank 1
Ismail
Top achievements
Rank 1
Share this question
or