Pass selection to container
-
I have a Treeview (telerik) using HierarchicalDataTemplate
The user MUST select the node BEFORE checking the checkbox. Is it possible to select the node when the user checks the checkbox.
Never underestimate the power of human stupidity RAH
-
I have a Treeview (telerik) using HierarchicalDataTemplate
The user MUST select the node BEFORE checking the checkbox. Is it possible to select the node when the user checks the checkbox.
Never underestimate the power of human stupidity RAH
Yes. Add a trigger to the TreeViewItem that says if IsKeyboardFocusWithin is true, then select the item.
-
Yes. Add a trigger to the TreeViewItem that says if IsKeyboardFocusWithin is true, then select the item.
yes pass a event treeviewitem
-
Yes. Add a trigger to the TreeViewItem that says if IsKeyboardFocusWithin is true, then select the item.
Thank you that was enough to chase down the detail.
Never underestimate the power of human stupidity RAH
-
I have a Treeview (telerik) using HierarchicalDataTemplate
The user MUST select the node BEFORE checking the checkbox. Is it possible to select the node when the user checks the checkbox.
Never underestimate the power of human stupidity RAH
The trick was to add an ItemContainerStyle because I am using a HeirarchicalDataTemplate
<Style.Triggers> <Trigger Property="IsKeyboardFocusWithin" Value="true"> <Setter Property="IsSelected" Value="true" /> </Trigger> </Style.Triggers>
Never underestimate the power of human stupidity RAH