How do I link toolbar button with RADWindow OpenerElementID?

4 posts, 0 answers
  1. Tomica
    Tomica avatar
    101 posts
    Member since:
    Apr 2008

    Posted 05 May 2008 Link to this post

    I have a basic test page, where I am teaching myself how to use the new controls.

    I placed a standard button on the page and can active a "popup" RAD window on my page that displays content from another URL.

    But now I want to do the same, but trigger this with a button on the RAD toolbar.

    I am unclear how to specify one of the toolbar buttons as the OpenerElementID for the window.

    Alternatively, perhaps this is not possible, and I need to activate the RAD window by some other means, but I don't even know where to start.

  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1411 posts
    Member since:
    Sep 2012

    Posted 06 May 2008 Link to this post

    Hi Tom,

    Indeed, there is no direct way to set a RadToolBarItem be an opener element for a RadWindow and this should be done with the aid of some JavaScript code. Please, find attached a small example demonstrating this. You might also find the RadControls for ASP.NET Ajax Online Examples helpful for learning the controls.

    Kind regards,
    Erjan Gavalji
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center

  3. Tomica
    Tomica avatar
    101 posts
    Member since:
    Apr 2008

    Posted 06 May 2008 Link to this post

    Applied lessons learned from supplied code.

    I find that the RadWindow that is displayed does not reflect any of the customization that I have applied in the designer (title, location, etc.)

    I then made a simple change to RadWindowManager, which is apparently inherited with the window.

    I have read the documentation on RadOpen, but am still unable to understand why my window does not open with the properties set for it.

    In contrast, using an OpenerElementID on the very same page causes the window do open as intended.

  4. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1411 posts
    Member since:
    Sep 2012

    Posted 06 May 2008 Link to this post

    Hi Tom,

    You can still use the GetRadWindowManager().getWindowById("MY_WINDOW_ID").show() method to display a RadWindow declared to a RadWindowManager.

    Please, check the Programming section in the Online Documentation for more information.

    I'm attaching the reworked page back for reference.

    Best regards,
    Erjan Gavalji
    the Telerik team


    Instantly find answers to your questions at the new Telerik Support Center

Back to Top