$find() isn't working for me within RadWindow

3 posts, 0 answers
  1. Tom M
    Tom M avatar
    33 posts
    Member since:
    Nov 2009

    Posted 27 Aug 2010 Link to this post

    Greetings,

    I am trying to obtain a reference to a RadTabStrip from within a RadWindow using...
    function pageLoad() {
        //get a reference to the needed controls -
        var manager = GetRadWindow().get_windowManager();
        var tabStrip = $find("<%=RadTabStrip1.ClientID %>");
    }

    when the page loads. This works fine when done from the main page where the RadTabStrip1 markup is located. I'm probably missing something very obvious but I have failed all morning to get the reference. When I open the RadWindow I get...

    Compiler Error Message: CS0103: The name 'RadTabStrip1' does not exist in the current context.

    I have tried everything I can think of, even tried hard-coding the clientID, with no luck. Any help would be much appreciated.


    Regards,
    Tom 
  2. Steve
    Steve avatar
    1886 posts
    Member since:
    Dec 2008

    Posted 28 Aug 2010 Link to this post

    Hi Tom,
      Can you paste in your window definition?  Is it an iframe (NavURL) or a content template one?

    Steve
  3. Tom M
    Tom M avatar
    33 posts
    Member since:
    Nov 2009

    Posted 30 Aug 2010 Link to this post

    Hi Steve,
    Thanks for your reply. I was using NavURL with radopen (and RadWindowManager) to open the window. The pageLoad function I originally posted located in an .aspx page that was being loaded within a radWindow. I'm not really sure what was happening but I worked around the issue as I described here...

    http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/object-expected-error-when-delcaring-radtab-client-side.aspx#1325420

    Regards,
    Tom
Back to Top