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

RadTreeView doesn't fire KeyDown

6 Answers 183 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yavor
Top achievements
Rank 1
Yavor asked on 09 Jun 2010, 08:03 AM
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?

6 Answers, 1 is accepted

Sort by
0
Miro Miroslavov
Telerik team
answered on 14 Jun 2010, 11:18 AM
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.
0
Andrei Rinea
Top achievements
Rank 1
answered on 08 Nov 2010, 01:48 PM

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.

0
Kiril Stanoev
Telerik team
answered on 10 Nov 2010, 02:49 PM
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
0
Andrei Rinea
Top achievements
Rank 1
answered on 10 Nov 2010, 06:13 PM
Ok, I've found a workaround (previewing KeyDown). What is the best way to know when the bug is fixed?
0
Kiril Stanoev
Telerik team
answered on 11 Nov 2010, 02:38 PM
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
0
Andrei Rinea
Top achievements
Rank 1
answered on 12 Nov 2010, 01:57 PM
Thanks!
Tags
TreeView
Asked by
Yavor
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Andrei Rinea
Top achievements
Rank 1
Kiril Stanoev
Telerik team
Share this question
or