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

[Solved] get_masterTableView is null

3 Answers 348 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 12 Mar 2010, 02:10 PM
Hi,

I am using Client-side update/insert/delete Grid. My programs is pretty much similar to your demo of the grid. The grid works fine if I already have some rows in the grid and then doing insert/update. However when I try to insert the first the row of the grid through Add panel it gives me error in updateGrid() javascript function for

 

 

 

var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();

I am getting get_masterTableView() null.

 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 12 Mar 2010, 05:21 PM
Hi Lubna,

A possible reason for the get_masterTableView() method to return null is if you are trying to access the MasterTableView before it is created. If it is called after the GridCreated client-side event, it should always return the respective MasterTableView client object.

Kind regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lubna Ansari
Top achievements
Rank 1
answered on 12 Mar 2010, 05:42 PM
Hi Pavlina ,

Can u pls send a sample code for GridCreated client-side event.

Thanks,
0
Accepted
Pavlina
Telerik team
answered on 15 Mar 2010, 01:05 PM
Hello Lubna,

More information about GridCreated event is available in this help article:
OnGridCreated

Kind regards,
Pavlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Lubna Ansari
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Lubna Ansari
Top achievements
Rank 1
Share this question
or