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

[Solved] DockMode = Locked?

1 Answer 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
shaun
Top achievements
Rank 1
shaun asked on 05 May 2007, 07:19 AM
Is it possible for you guys to add a DockMode="Locked" enum value so that an item is NOT movable?  Also, a DockPode="PosLocked" enum value to make an item not movable and locked in its current position (such that if it was in position 2, deleting items 0 and 1 would not make it move ... and adding a new item between 0 and 1 would push the current 1 to be 3)?

I know that the "Locked" functionality can be done with DockHandle="None", but it would be nice to be able to lock an item without changing its appearance.

-Shaun

PS. "Locked" is more important than "PosLocked" ... "PosLocked" was really just a "that would be cool" item.

1 Answer, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 07 May 2007, 06:34 AM
Hi Shaun,

The requested functionality could be achieved using the script below:
<telerik:raddock runat="server" id="RadDock1" 
    onclientinitialized="DisableDrag" ... />
<script type="text/javascript">
function DisableDrag(dock, args)
{
    dock.set_EnableDrag(false);
}
</script>


Currently, this is the only way to prevent a RadDock control from dragging without changing its appearance. The suggestions are logged in our bug tracking database and will be considered when we decide what will be implemented in the future versions of the control.

Best wishes,
Valeri Hristov (Senior Developer, MCSD)
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
shaun
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Share this question
or