Popup in custom control bug???

6 posts, 0 answers
  1. Silver
    Silver avatar
    9 posts
    Member since:
    Jul 2009

    Posted 23 Nov 2009 Link to this post

    Hi
    I have created an image html control and a radwindow as a popup in a custom control.  When I add my custom control to a web page the image does not open the window.
    I am using Firefox 3.5.5 or IE 8.
    Any solutions?
    thanks

    (in custom control)
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadWindow ID="rwGoogle" runat="server" Modal="True" NavigateUrl="http://www.google.co.uk"
       OpenerElementID="imgOpenWindow">
    </telerik:RadWindow>
  2. Silver
    Silver avatar
    9 posts
    Member since:
    Jul 2009

    Posted 23 Nov 2009 Link to this post

    oh & this

    <img id="imgOpenWindow" name="imgOpenWindow" src="~/graphics/find.gif" runat="server" SkinID="EditData" style="cursor:pointer" alt="find" />


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roland
    Roland avatar
    156 posts
    Member since:
    Feb 2009

    Posted 23 Nov 2009 Link to this post

    Hello,

    What you can try to do:

    <asp:ImageButton id="imgOpenWindow" runat="server" name="imgOpenWindow" src="~/graphics/find.gif" runat="server" SkinID="EditData" style="cursor:pointer" alt="find" OnClientClick="return false"/> 

    then set OpenerElementId = "<%# imgOpenWindow.ClientId %>"

    This helped me once :)
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Nov 2009 Link to this post

    Hi Silver,

    The OpenerElementID property expects a client ID as its value. Because you are using user control which is an iNaming container, the property must be set as Roland suggested. More information on the subject is available in the demo.

    Sincerely yours,
    Georgi Tunev
    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.
  6. Silver
    Silver avatar
    9 posts
    Member since:
    Jul 2009

    Posted 03 Dec 2009 Link to this post

    Hi

    I have tried this out but it is not working.  No popup is shown.

    It is a little strange because I only get this exact problem when I work from home (hence the delay in trying this out again). 

    On my work pc the window is shown perfectly ok so and when I work from home it does not show the window.  Work pc, IE7 & XP, home pc, Windows 7 & firefox or IE8. 

    I'm just wondering if I have some settings on my IE or Firefox or Windows 7 that does not allow this kind of iFrame popup???  Could that be a problem.

    Any more ideas?
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 03 Dec 2009 Link to this post

    Hi Silver,

    I'm afraid that at this point I cannot come up with a reason for such behavior. Basically, the OpenerElementID functionality uses the page's databinding mechanism, so browser's setting should not affect it. Of course, if you have disabled the JavaScript in the browser, the window will not open, however I don't think that this is the case.

    If you have time, please send me the project in a support ticket and I will suggest you other ways to achieve the desired result.

    Greetings,
    Georgi Tunev
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017