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

Reload issue after RadWindow close

3 Answers 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
anu
Top achievements
Rank 1
anu asked on 13 Aug 2008, 09:36 PM

I have 2 RadAjaxPanels, one panel consists of drop down and another panel consists of text box, scheduler and radgrid. when the user enters text in the text box and clicks search button, another radwindow opens with all names and he can select any name given in the child radwindow and the child radwindow closes and the parent radwindow is reloaded. What I want is I dont want to reload the entire page, I dont want to change the selected values which are there in the drop down, I just want to reload the controls in the second panel.

For that purpose I replaced some code in the javascript
function CloseAndReload()
  {
    var oWnd = GetRadWindow();
                //oWnd.BrowserWindow.location.href=oWnd.BrowserWindow.location.href;
                  oWnd.BrowserWindow.RadAjaxPanel2.href=oWnd.BrowserWindow.RadAjaxPanel2.href;
    oWnd.Close();
  }
If the above code is written the content radwindow javascript, now after selecting the name from the child radwindow, the sessions are repopulated but the controls are not bound and refreshed.However the value of the dropdown in the first panel remains the same, which I want.

Any suggestions?

3 Answers, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 2
answered on 14 Aug 2008, 03:49 AM
I would have to see your actual code to be sure, but here is an example that does something simlar to what you wish. One thing you will need to do is set an AjaxManager to update all of the items in the second panel.

http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx

Thanks for listening.

Sean
Elsctronic Arts, Orlando FL
0
anu
Top achievements
Rank 1
answered on 14 Aug 2008, 07:02 PM
Thank you for the reply Sean, the RadAjaxManager and its Update controls are set. Checked the example, could not figure out a solution though as it is rebinding the RadGrid in either case. I just want to rebind the controls in the second panel.
0
Georgi Tunev
Telerik team
answered on 15 Aug 2008, 11:46 AM
Hi Anu,

I think that the page that Shaun provided should be of help, however I am not familiar with your exact setup. In general the idea is to use JavaScript ajaxRequest to rebind what you need on the parent page - that is what is done in that demo. More information on the subject is available in the documentation:
http://www.telerik.com/help/aspnet-ajax/ajxclientsideapi.html

If you still experience problems, please open a support ticket and send us a sample project that reproduces your setup and shows the problem - we will check it and do our best to help.


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
anu
Top achievements
Rank 1
Answers by
Sean
Top achievements
Rank 2
anu
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or