Emit Only New Docks with Ajax

2 posts, 0 answers
  1. Valery
    Valery avatar
    45 posts
    Member since:
    Nov 2008

    Posted 09 May 2010 Link to this post

    Hello there,

    I have a layout with three RadDockZone's put in a RadDockLayout which is placed in a RadAjaxPanel. I am adding a from a menu by calling a page method and then calling the ajaxRequest method of the RadAjaxPanel. Everything works almost correctly. The problem is the markup of all docks gets refreshed during the AJAX request which leads to:

    1. noticable slowdown when many docks are opened and/or lots of markup is loaded (because there are mainly grids in my docks);
    2. all docks get refreshed which in my case hides the data and reloads it (as I am using client-side databinding to populate the grids).

    I have tried creating a hidden (display: none) RadDockZone, loading docks dynamically in it and then moving them to the target dock but it didn't work. Any ideas?

    Best regards,
  2. Pero
    Pero avatar
    1156 posts

    Posted 12 May 2010 Link to this post

    Hello Valery,

    You should try using an invisible UpdatePanel, as shown in the following example from our Code Library: http://www.telerik.com/community/code-library/aspnet-ajax/docking/saving-state-of-dynamically-created-raddocks-in-database-using-hidden-updatepanel.aspx.
    The newly created docks are added to the UpdatePanel, and then docked to the respective docking zone.

    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. DevCraft R3 2016 release webinar banner
Back to Top