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

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

2 Answers 109 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tom M
Top achievements
Rank 1
Tom M asked on 27 Aug 2010, 07:50 PM
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 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 29 Aug 2010, 04:00 AM
Hi Tom,
  Can you paste in your window definition?  Is it an iframe (NavURL) or a content template one?

Steve
0
Tom M
Top achievements
Rank 1
answered on 30 Aug 2010, 09:41 PM
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
Tags
Window
Asked by
Tom M
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Tom M
Top achievements
Rank 1
Share this question
or