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

how to remove dock from dockstate collection after dock.close event

1 Answer 55 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Developer Developer
Top achievements
Rank 1
Developer Developer asked on 12 May 2011, 12:03 AM
I borrowed heavily from the dynamic portal sample http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx  .. I noticed that when a user "deletes" a dock, dock.close() fires, and the dock remains in the dockstate collection  (with Closed=true). 

Is there a best practice or sample for how to remove it from the dockstate collection as well?

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 13 May 2011, 10:48 AM
Hello,

RadDockLayout object offers a method GetRegisteredDocksState(bool omitClosedDocks) which can be used to return docksState containing only the opened docks in the layout.

Kind regards,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Dock
Asked by
Developer Developer
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or