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

[Solved] Postback Causes Dialog Window Not To Open

1 Answer 139 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Jun 2008, 12:08 PM
Hi

I was wondering if anyone could help me out. I'm using the RadWindow control. The RadWindow control is on the page and the openerElement is inside an update panel. Everything works fine until the update panel is posted back to the server. Once this has happened when I click the button which previously opened the dialog, nothing happens! Any idea why this would be the case?

I've also tried moving the RadWindow control inside the update panel, but this seems to throw the following exception:

"Error.invalidOperation(Sys.Res.controlAlreadyDefined)"

I have an example project but cant see anywhere to attach this?

Thanks
David

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 Jun 2008, 02:01 PM
Hi David,

I strongly recommend not to use the OpenerElementId property in such scenario - it is intended to be used in simple scenarios only - for example when you want to open a RadWindow popup by clicking on some element.

In cases where there is a more complex logic, AJAX involved, etc., I strongly recommend to use either the Client-Side or the Server-Side API for opening the RadWindow.
More information on how to set various server and client side properties is available in the documentation, section Controls / RadWindow / Programming.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or