When we close the dock, can we change dock index also? My situation is that I have two RadDockZones(Zone 1 and Zone2). Users can close the existing docks. User can also add these closed docks back to the RadDockZone2 after users select the Dock name. After these closed Dock re add in to radZone2, these new added dock should display at the bottom of the exsiting Docks on Zone 2
what I tried to do is:
1. change Dock.DockZoneID and also changed state.index ( Dock.index change also). please see code below
what issue now:
if the index of the existing Docks inside RadDockZone2 is less than the RadDockZone3.Docks.Count
, it works. if the exisitng
dock index is larger than the RadDockZone2.Docks.Count
, then the new added Rock will display on the top of the existing dock.
example: on RadDockZone2, it has 6 docks before so the index will be 0,1,2,3,4,5
after I closed alll the Docks inside the RadDockZone2 except that index is 5. I readded the dock which index is 2.
after I readded and then I reset the index to RadDockZone2 .dock.count // 1 dock now
then the readded dock will be on the top of the existing dock which index is 5
any suggestion ?
If state.Closed Or dock.Closed Then
state.DockZoneID = "ctlwucWidgets_RadDockZone2"
dock.DockZoneID = state.DockZoneID
state.Index = RadDockZone2.Docks.Count