RadTreeView doesn't fire KeyDown

7 posts, 0 answers
  1. Yavor
    Yavor avatar
    19 posts
    Member since:
    Apr 2009

    Posted 09 Jun 2010 Link to this post

    Hello,

    I have a form with one RadTreeView and one Button. The button has IsDefault="true" set. I use the keyboard keys (up/down) to select an item in the treeview. Then I press Enter key and the button command should be executed. However, the RadTreeView handles the KeyDown event before it bubbles up to the form. Is there any way to work around this?
  2. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 14 Jun 2010 Link to this post

    Hello Yavor,

    The idea is that when the TreeView is doing something - we should handle it. But we have bug in the RadTreeView, we handle the enter key down, even when nothing happens (no child items are expanded). We will fix it till the next release. Thank you for reporting it.

    Regards,
    Miro Miroslavov
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Andrei Rinea
    Andrei Rinea avatar
    10 posts
    Member since:
    Jun 2008

    Posted 08 Nov 2010 Link to this post

    Hello support team!

    Do you know if this issue has been solved?

    I am having some issues with the RadTreeView's ENTER keypress swallowing. Probably it's used for expanding/collapsing the current node but I need to bind the ENTER key to an ICommand instance like so :

    var openCommand = (ICommand)ObjectReflectionExtensions.GetPropertyValue(tree.DataContext, "Open");

    tree.InputBindings.Add(new KeyBinding(openCommand, Key.Enter, ModifierKeys.None));

    However at runtime nothing happens.

    Is this related? Does it have a solution or at least a workaround?

    Thanks,

    Andrei Rinea.

  5. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 10 Nov 2010 Link to this post

    Hi Andrei,

    We were not able to fix this issue for our official Q3 2010 release, but a fix will be available with either this or next week's internal build.

    Best wishes,
    Kiril Stanoev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. Andrei Rinea
    Andrei Rinea avatar
    10 posts
    Member since:
    Jun 2008

    Posted 10 Nov 2010 Link to this post

    Ok, I've found a workaround (previewing KeyDown). What is the best way to know when the bug is fixed?
  7. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 11 Nov 2010 Link to this post

    Hi Andrei,

    You can follow this PITS issue and the status of the item.



    Please note that the name of the item has been changed to "TreeView: Handles "Enter" key even when nothing is done" and the change will be reflected within 24 hours.

    Greetings,
    Kiril Stanoev
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  8. Andrei Rinea
    Andrei Rinea avatar
    10 posts
    Member since:
    Jun 2008

    Posted 12 Nov 2010 Link to this post

    Thanks!
Back to Top
UI for WPF is Visual Studio 2017 Ready