private void HandleKeyDown(KeyEventArgs e)
if (e.Key == Key.Down)
e.Handled = true;
5 Answers, 1 is accepted
We have improved the implementation of our commands so they can be executed asynchronous. That is why you encountered such a difference. I am sending you the updated project that works with our current official release.
the Telerik team
Generally, this is just illustrating a possible solution that might be useful depending on the editing element. Still, you may implement the code as it is in the HandleKeyLeft(e) method - without invoking a dispatcher.
the Telerik team
this solution works fine if you're dealing with textboxes in the grid. I'm having some issues with RadDatePicker and RadComboBox.
RadDatePicker; tried to cast CurrentCell to RadDatePicker in the CurrentCell_GotFocus method, but RadDatePicker doesn't have a SelectAll() method and I end up with a StackOwerflowException if try to call Focus().
The issue with RadComboBox is perhaps a bit more tricky to deal with. If you open the ComboBox and try to select a value with arrow up or down you'll end up switching cell.
Is there an easier way to deal with these issues than treating each control with special care? When it comes to the RadDatePicker I'd like the same behavior as you get with the enter key. The combobox should handle arrow up and down when in "dropdown" mode, and stopping the event from bubbling up. I would really appreciate some assistance on these two issues.
Telerik version 2013.3 Sp1
In order to be able to select the date, you should firstly get the element as RadDatePicker, and get the RadDatePicker's TextBox, on which you can set the focus.
You can use the following snippet as an example:
The problem with RadComboBox is that the
HandleKey... methods are executed instead of the default key commands. You can solve this issue by executing this methods only when the selected method is not of type RadComboBox.
The following snippet can be used as an example:
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>