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

[Solved] can't $find grid in UserControl

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 06 Nov 2009, 05:45 PM
I have a RadGrid in a UserControl (.ascx) file.  In the javascript, I want to get a reference to the grid itself.  However, calling

 $find("<%= UserContactsGrid.ClientID %>") 

returns null.  Is there a problem with finding grids inside of ascx controls?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 06 Nov 2009, 06:13 PM
Hello Ryan,

I suppose you are trying to get a reference to the client object too early. Please examine the following thread for more information.
Javascript $find function

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Ryan
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or