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

Emit Only New Docks with Ajax

1 Answer 36 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Valery
Top achievements
Rank 2
Valery asked on 09 May 2010, 11:34 AM
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,
Valery.

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 12 May 2010, 12:28 PM
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.


Regards,
Pero
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
Dock
Asked by
Valery
Top achievements
Rank 2
Answers by
Pero
Telerik team
Share this question
or