Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Window > Register RadWindow Client Side
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Answered Register RadWindow Client Side

Feed from this thread
  • Posted on Feb 2, 2010 (permalink)

    Is it possible to register a RadWindow with the RadWindowManager on the client side (in JavaScript)?  That way, the window is created and registered dynamically, dramatically reducing markup and eliminating the need to register all windows ahead of time.

  • Answer Shinu MVP avatar

    Posted on Feb 3, 2010 (permalink)

    Hello Patrick Carlile,

    You can open the RadWindow from client code whenever you want by using the radopen() method.
          var oWnd = radopen ("http://wwwo.gogle.com", null);

    The above code will open a new radwindow with url Google, and no need of adding the window in Radwindow's window collection.

    Checkout the following documentation for more information on opening radwindow from client code.
    Opening Windows

    Hope this suggestion helps,
    Shinu.

  • Posted on Feb 3, 2010 (permalink)

    I appreciate the help.  I was talking about rad windows that hadn't been pre-registered with the RadWindowManager.  I actually found a good way to do this on my own.  On the client side (JavaScript), RadWindowManager.CreateWindow(id) will create a new RadWindow.  Once it's registered, all of the properties required can be set.  It's helpful if you have the RadWindow source here, as you can see how that method sets all the properties.  This is what the RadWindow will call when Rendering, anyway.

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Feb 4, 2010 (permalink)

    Hi Patrick,

    I just want to add something - if you follow Shinu's advice and use radopen(), when you don't specify a name for that window or set a name of a window that doesn't exist in the RadWindowManager's  <Windows> collection, the manager will create a new RadWindow with the default settings taken from the RadWindowManager. After that you could use the client-side API to set the needed properties.

    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.

  • Posted on Feb 4, 2010 (permalink)

    Ah, I see.  So registration is optional.  I think I was concerned about referencing the same Window a second time using that method.  I will mark his solution as the answer.  Thanks!

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Feb 4, 2010 (permalink)

    Hello again Patrick,

    You will reference the same window only if you specify its name as a second parameter :)
    e.g.
    radopen("http://google.com", "RadWindow1");
    and
    radopen("http://yahoo.com", "RadWindow1");
    will always use the pre-defined (or already created) "RadWindow1" control.

    All the best,
    Georgi Tunev
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Window > Register RadWindow Client Side