Keyboard binding

4 posts, 0 answers
  1. Kevin
    Kevin avatar
    15 posts
    Member since:
    Feb 2014

    Posted 02 Sep 2015 Link to this post

    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.

  2. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 03 Sep 2015 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kevin
    Kevin avatar
    15 posts
    Member since:
    Feb 2014

    Posted 03 Sep 2015 in reply to Yoan Link to this post

    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

  5. Yoan
    Admin
    Yoan avatar
    1068 posts

    Posted 03 Sep 2015 Link to this post

    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
Back to Top