Gets or sets a value indicating whether users can drag items anywhere in the view, not only in the first unoccupied row.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling
C# Copy Code |
---|
public State FreeDrag { get; set; } |
Visual Basic Copy Code |
---|
Public Property FreeDrag As State |
A member of the State enumeration. Assign Unspecified to this property to use the corresponding value from the current theme.
Set this property to Enabled to disable the default item layout algorithm, where colliding items are arranged relative to each other according to their start and end times and their Priority. Turning this property on will allow users to move items anywhere within the view.
The position of an item acquired through free dragging is related to the view. This means that if the schedule, containing the item is displayed in another Calendar control, the item's position within the List view might not be the same as its position in the initial view. Additionally, view-related data is not serialized by calling the serialization methods of the Schedule class. In order to serialize and deserialize this data, you have to invoke the SaveTo and LoadFrom methods of the Calendar class instead.
Finally, the position of an item within the view can be obtained and set programmatically through the use of the GetItemListLane and SetItemListLane methods of the Calendar class.