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

$find() within my custome splitter

1 Answer 48 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Beth Krawczuk
Top achievements
Rank 1
Beth Krawczuk asked on 17 Mar 2008, 03:13 PM
I created a custom Splitter control and have a grid in one of the panes.  Now I don't seem to be able to find the grid when trying to GetSelectedItems() clientside.  My project won't build and I get the error that "The Name 'RadGrid1' does not exist in the current context.

Thank you,
Beth

1 Answer, 1 is accepted

Sort by
0
Beth Krawczuk
Top achievements
Rank 1
answered on 17 Mar 2008, 07:59 PM
Oh nevermind, I figured it out.

I had to use ".FindControl("RadGrid1")" in the javascript to find the grid within my custom control just as I did in codebehind.

var gridCtrl = '<%= mySplitter.FindControl("RadGrid1").ClientID %>';
var grid = $find(gridCtrl);

Thanks,
Beth
Tags
Splitter
Asked by
Beth Krawczuk
Top achievements
Rank 1
Answers by
Beth Krawczuk
Top achievements
Rank 1
Share this question
or