Is it possible to change the key binding as follows?
up / down : go to item above or below that is visible in the tree right now
right: open folder to get to children
left: close folder so you don't see children anymore
If so can you please point me to documentation on how to override the default behavior? Thanks.
3 Answers, 1 is accepted
Actually, this is out-of-the-box functionality in our RadTreeListView control. You can check our online demos for a reference. You can find the same examples in your local copy of WPF demos.
Regards,
Yoan
Telerik
Thanks for the reply.
Our tree is not behaving like that. I have tried stripping away code we have that the demo does not but it still does not work.
When I click on a parent item I see a box around it like in your demo. When I press the right arrow key the focus in our tree always moves to the next column, it does not expand the tree. Pressing the left arrow will make focus go to a different control on the page. Any rough idea how we broke the keyboard binding? Here is our tree:
IsBusy="{Binding IsBusy}"
RowIndicatorVisibility="Collapsed"
Loaded="treeFileSystem_Loaded"
IsReadOnly="True"
AutoGenerateColumns="False"
ItemsSource="{Binding FoldersOnDemand, IsAsync=True}"
IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"
AutoExpandItems="False"
Grid.Row="0"
telerik:GridViewVirtualizingPanel.IsVirtualizing="True"
ValidatesOnDataErrors="InEditMode"
EnableColumnVirtualization="True"
EnableRowVirtualization="True"
MouseDoubleClick="treeFileSystem_DoubleClick"
GotFocus="treeFileSystem_GotFocus"
SelectionChanged="treeFileSystem_SelectionChanged"
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
We manually define the columns and we also have a RadContextMenu for right click actions.
Thanks
Can you remove the IsExpandedBidning property and let me know how it works? Can you share what exactly version of Telerik UI for WPF you are suing?
Regards,
Yoan
Telerik