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

How do I link toolbar button with RADWindow OpenerElementID?

3 Answers 211 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Tomica
Top achievements
Rank 2
Tomica asked on 05 May 2008, 11:08 PM
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.

3 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 06 May 2008, 08:58 AM
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
0
Tomica
Top achievements
Rank 2
answered on 06 May 2008, 03:51 PM
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.
0
Erjan Gavalji
Telerik team
answered on 06 May 2008, 04:16 PM
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
Tags
ToolBar
Asked by
Tomica
Top achievements
Rank 2
Answers by
Erjan Gavalji
Telerik team
Tomica
Top achievements
Rank 2
Share this question
or