This question is locked. New answers and comments are not allowed.
Hi,
A little help with this problem would be great.
I have a RadTreeView as follows
with a hierarchical data template as follows
and I am also binding the IsExpanded property to the datacontext of MyTemplateClass using container bindings as follows
I have an item X, which has a set 10 items inside it, and one of them, "Y", has many items inside it. When I expand X, Y appears to expand and then unexpand, creating a very stuttered animation. I have placed a converter on the container binding and have found that Y indeed is first set to true and then to false. I have also debugged the property setter in the datacontext for MyTemplateClass and found that the binding source is never set to true, it remains false.
I should also say that if I turn virtualising off then the problem goes away, the animation is smooth and Y is not expanded.
I would like to keep Y false so that it does not expand when I expand X but cannot find where to make this setting. Should I be looking to edit a template or should I try to change it in the converter or something else?
Hope this makes sense.
Thanks in advance,
Chris
A little help with this problem would be great.
I have a RadTreeView as follows
<Controls:RadTreeView Name="TreeView" IsVirtualizing="True" ItemTemplate="{StaticResource NodeTemplate}" ItemsSource="{Binding Tree}"></Controls:RadTreeView>with a hierarchical data template as follows
<telerik:HierarchicalDataTemplate x:Key="NodeTemplate" ItemsSource="{Binding Children}" telerik:ContainerBinding.ContainerBindings="{StaticResource ContainerBindings}"> <MyTemplateClass ItemText="{Binding Name}" /></telerik:HierarchicalDataTemplate>and I am also binding the IsExpanded property to the datacontext of MyTemplateClass using container bindings as follows
<telerik:ContainerBindingCollection x:Key="ContainerBindings"> <telerik:ContainerBinding PropertyName="IsExpanded" Binding="{Binding Expanded, Mode=TwoWay}" /></telerik:ContainerBindingCollection>I have an item X, which has a set 10 items inside it, and one of them, "Y", has many items inside it. When I expand X, Y appears to expand and then unexpand, creating a very stuttered animation. I have placed a converter on the container binding and have found that Y indeed is first set to true and then to false. I have also debugged the property setter in the datacontext for MyTemplateClass and found that the binding source is never set to true, it remains false.
I should also say that if I turn virtualising off then the problem goes away, the animation is smooth and Y is not expanded.
I would like to keep Y false so that it does not expand when I expand X but cannot find where to make this setting. Should I be looking to edit a template or should I try to change it in the converter or something else?
Hope this makes sense.
Thanks in advance,
Chris