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

problem using popup window

1 Answer 130 Views
Window
This is a migrated thread and some comments may be shown as answers.
Atiq Ur Rehman
Top achievements
Rank 1
Atiq Ur Rehman asked on 14 Aug 2008, 02:04 PM
Hi,

I have just spent around 3 hours trying to sort out the problem. The problem is very simple, I have a page which has got some textboxes, its a form basically. There is also a grid on the page and a button. When the button is clicked it opens another radwindow and shows some options to the user, at the end when user clicks submit, it does some processing and closes itself and reload the parent page. The problem is if I reload the parent page I lose every thing which has been entered in the textboxes etc. I have tried every example of closing and rebinding the grid but I can only make the parent page refresh which is not what I want. I am working in DNN by the way.

Also there is another problem, I am using multiview and load ascx control in multiview according to some session variable. The problem I am facing is that multiview loads the ascx control twice on the first load which ends up duplicating the databind with treeview I have on the ascx control. Can you please help with this as well.

Please write the full code in your answer..

Thanks
Atiq

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Aug 2008, 01:49 PM
Hi Atiq,

If you wish to save the information entered in the textboxes and other inputs, you need to submit the page, not to reload it. For this purpose  you can use __doPostBack() or RadAjax's ajaxRequest call to do this.
The problem is not related to the RadWindow control - this is a general ASP.NET task, so the approach that you would choose depends entirely on your setup and the desired logic.
My suggestion is to implement the logic not by using RadWindow but a standard browser's popup (window.open()). Once you have your code working as expected, the same approach will work with RadWindow as well.




Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Atiq Ur Rehman
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or