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?
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
0
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.
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
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
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
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
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!