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

Ajax Update on close

3 Answers 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 08 Apr 2010, 03:14 PM
Hi

I have a databound Repeater control. I'm using RadWindow to show additional Data and pop up additional forms.

Currently I have:

GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href;

to reload the page so that any changes take effect. The problem is it relaods the whole page and resets any paramters that may be selected in a series of dropdowns. All I want to do is refresh the Repeater contol with Ajax from the RadWindow close.

How would I go about doing this.
Andy

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 09 Apr 2010, 02:11 PM
Hello Andy Green,

You can use a RadAjaxManager as shown in the demo below:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window


Regards,
Svetlina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Andy Green
Top achievements
Rank 1
answered on 12 Apr 2010, 09:16 AM
Thanks, but I have seen and used this demo.

It works great if you want to update a grid, but I have a repeater control (std dot Net one)
hence the line refreshGrid(args); does not work in this instance.

It may be that I have missed something, in which case can you expand on how this demo will work for me.

Andy

0
Georgi Tunev
Telerik team
answered on 15 Apr 2010, 08:21 AM
Hi Andy,

The approach that Svetlina suggested will work with asp:repeater as well - the only difference is that instead of RadGrid1.Rebind(), you should call the DataBind() method of the repeater.

If you still experience problems, please open a support ticket and send us a demo project that shows them.

Regards,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Andy Green
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Andy Green
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or