Hi all,
I was wondering if it's possible to move a dynamically created dock up or down (within it's dynamically created zone) by the user clicking on a dock's command (client or server side code, just as long as there is a postback at some stage after the move to save the new position)?
For example, I have a dynamically created zone with 3 dynamically created docks (1, 2, 3 - in that order) and the user wants to move dock 1 to be in position 2 (so then the order would be 2, 1, 3), is it possible to do that by clicking on a command rather than by them dragging the dock to position 2?
I've tried zone.Docks.Insert(2, dock) and zone.Controls.AddAt(2, dock) without success, but the dock doesn't move.
The reason I ask is that some docks are long and if the dock content goes down beyond the height of the browser then you can't drag a dock below that long one.
I should mention that the zones and docks are all created dynamically (based on a database) and during postbacks/ajax call backs docks are saved to the session and recreated on init.
Any ideas?
My current solution is to allow users to minimise the dock contents, thus removing the issue of long docks breaking over the page, but I would have thought it was a fairly basic and desired functionality to be able to have dock commands that move docks up and down.
Thanks,
Pete
I was wondering if it's possible to move a dynamically created dock up or down (within it's dynamically created zone) by the user clicking on a dock's command (client or server side code, just as long as there is a postback at some stage after the move to save the new position)?
For example, I have a dynamically created zone with 3 dynamically created docks (1, 2, 3 - in that order) and the user wants to move dock 1 to be in position 2 (so then the order would be 2, 1, 3), is it possible to do that by clicking on a command rather than by them dragging the dock to position 2?
I've tried zone.Docks.Insert(2, dock) and zone.Controls.AddAt(2, dock) without success, but the dock doesn't move.
The reason I ask is that some docks are long and if the dock content goes down beyond the height of the browser then you can't drag a dock below that long one.
I should mention that the zones and docks are all created dynamically (based on a database) and during postbacks/ajax call backs docks are saved to the session and recreated on init.
Any ideas?
My current solution is to allow users to minimise the dock contents, thus removing the issue of long docks breaking over the page, but I would have thought it was a fairly basic and desired functionality to be able to have dock commands that move docks up and down.
Thanks,
Pete