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

Radwindow closes when postback occurs on ParentPage

2 Answers 155 Views
Window
This is a migrated thread and some comments may be shown as answers.
Noor hussain
Top achievements
Rank 1
Noor hussain asked on 02 Jul 2011, 06:32 AM
Dear All,

Here is my scenario, I am opening a Radwindow from my Parentpage. I have a button on my parentpage which I am using to save some data,  when I click on the button the radwindow disappears its destroyed. Please let me know how can I rectify this issue. Please note that I don't want to cancel the postback of my button which is on the ParentPage as i need to save some data on the button click and also I don't want to make the Radwindow as modal window. Can I capture the parentpage button event on my radwindow page. Any help is appreciated.

Regards,
Noor hussain.

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 04 Jul 2011, 11:19 AM
Hi Noor,

If you are making a full postback when you click the button on the parent page, such behavior is expected. During a postback, the whole page is reloaded and during this process, all dynamically created objects on the page (including RadWIndow) will be destroyed.
To avoid the problem, I would suggest to use RadAjax and to ajaxify the button on the main page. This way the page will not be refreshed when you submit the data to the server.

Greetings,
Georgi Tunev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Noor hussain
Top achievements
Rank 1
answered on 05 Jul 2011, 10:55 AM
Hello Georgi,

Thanks a lot for your time. Your suggestion worked.

Regards,
Noor Hussain
Tags
Window
Asked by
Noor hussain
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Noor hussain
Top achievements
Rank 1
Share this question
or