Ajax Update on close

4 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 08 Apr 2010 Link to this post

    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

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 09 Apr 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 12 Apr 2010 Link to this post

    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

  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 Apr 2010 Link to this post

    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.
Back to Top