This is a migrated thread and some comments may be shown as answers.

Keyboard binding

3 Answers 41 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 02 Sep 2015, 06:32 PM

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

Sort by
0
Yoan
Telerik team
answered on 03 Sep 2015, 12:39 PM
Hi Kevin,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Kevin
Top achievements
Rank 1
answered on 03 Sep 2015, 01:31 PM

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

0
Yoan
Telerik team
answered on 03 Sep 2015, 01:55 PM
Hello Kevin,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
TreeListView
Asked by
Kevin
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or