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

How to load Grid in UserControl using Web Services

1 Answer 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 17 Aug 2012, 01:07 PM
I can load a RadGrid in the main page using get_masterTableView().  However, If I have the grid in an ASCX page, what do I need to do to load that grid from the main ASPX page?  I can get a reference to the grid:
var myGrid = document.getElementById('<%= ((RadGrid)myControl.FindControl("RadGrid1")).ClientID %>')
but get_masterTableView() is not valid for myGrid.

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 22 Aug 2012, 07:57 AM
Hello,

 You should use the $find function instead of the getElementById. This way if the obtained client ID is correct you should get a reference to the client-side object of the grid and access the MasterTableView

Greetings,
Marin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Ron
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or