-
Beth Krawczuk
26
posts
Member since:
Feb 2008
Posted 17 Mar 2008
Link to this post
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
-
-
Beth Krawczuk
26
posts
Member since:
Feb 2008
Posted 17 Mar 2008
Link to this post
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
-