Hello,
Can the "IsDropAllowed" property be changed to represent the three drop positions? For example "IsDropBeforeAllowed", "IsDropAfterAllowed", and "IsDropInsideAllowed" This would allow me to container bind the properties and handle a significant amount of business logic via binding instead of in code...
For example, if I have a tree representing an org structure chart that contains departments/sudepartments like "Finance" and "Human Resources" and positions like "CEO" and "Sales Rep"... This tree could be rearranged via drag'n'drop but we would like to restrict dropping inside of a position while not stopping dropping before or after a position...
My binding could look like this...
Can the "IsDropAllowed" property be changed to represent the three drop positions? For example "IsDropBeforeAllowed", "IsDropAfterAllowed", and "IsDropInsideAllowed" This would allow me to container bind the properties and handle a significant amount of business logic via binding instead of in code...
For example, if I have a tree representing an org structure chart that contains departments/sudepartments like "Finance" and "Human Resources" and positions like "CEO" and "Sales Rep"... This tree could be rearranged via drag'n'drop but we would like to restrict dropping inside of a position while not stopping dropping before or after a position...
My binding could look like this...
<
telerik:HierarchicalDataTemplate
x:Key
=
"itDepartment"
ItemsSource
=
"{Binding Children}"
ItemTemplateSelector
=
"{StaticResource its}"
>
<
telerik:ContainerBinding.ContainerBindings
>
<
telerik:ContainerBindingCollection
>
<
telerik:ContainerBinding
PropertyName
=
"IsDropInsideAllowed"
Binding
=
"{Binding xxx, FallbackValue=true}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsDropBeforeAllowed"
Binding
=
"{Binding xxx, FallbackValue=true}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsDropAfterAllowed"
Binding
=
"{Binding xxx, FallbackValue=true}"
" />
</
telerik:ContainerBindingCollection
>
</
telerik:ContainerBinding.ContainerBindings
>
<
TextBlock
Text
=
"{Binding ElementName}"
/>
</
telerik:HierarchicalDataTemplate
>
<
telerik:HierarchicalDataTemplate
x:Key
=
"itPosition"
ItemsSource
=
"{Binding Children}"
ItemTemplateSelector
=
"{StaticResource its}"
>
<
telerik:ContainerBinding.ContainerBindings
>
<
telerik:ContainerBindingCollection
>
<
telerik:ContainerBinding
PropertyName
=
"IsDropInsideAllowed"
Binding
=
"{Binding xxx, FallbackValue=false}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsDropBeforeAllowed"
Binding
=
"{Binding xxx, FallbackValue=true}"
/>
<
telerik:ContainerBinding
PropertyName
=
"IsDropAfterAllowed"
Binding
=
"{Binding xxx, FallbackValue=true}"
" />
</
telerik:ContainerBindingCollection
>
</
telerik:ContainerBinding.ContainerBindings
>
<
TextBlock
Text
=
"{Binding ElementName}"
/>
</
telerik:HierarchicalDataTemplate
>