Hi,
We made a custom control out of the Rad DropDown Button where the Grid is the Drop Down pop up. I this control we need to have the Drop Down access through the 'Up' and 'Down' keys. We are handling this with the key press event. This works perfectly fine with the up arrow and with down arrow the Drop Down Button pop up opens, instead I need the selected value of drop down to change with out opening the pop up. Is there a way to stop the pop up from opening when the down arrow is pressed. The sample code is being attached.
Will be greatfull if someone helps me out.
We made a custom control out of the Rad DropDown Button where the Grid is the Drop Down pop up. I this control we need to have the Drop Down access through the 'Up' and 'Down' keys. We are handling this with the key press event. This works perfectly fine with the up arrow and with down arrow the Drop Down Button pop up opens, instead I need the selected value of drop down to change with out opening the pop up. Is there a way to stop the pop up from opening when the down arrow is pressed. The sample code is being attached.
this.KeyDown += (o, e) => |
{ |
switch (e.Key) |
{ |
case Key.Down: |
try |
{ |
this.grid.SelectedIndex++; |
} |
catch (Exception) |
{ |
this.grid.SelectedIndex = 1; |
} |
break; |
case Key.Up: |
try |
{ |
this.grid.SelectedIndex--; |
} |
catch (Exception) |
{ |
this.grid.SelectedIndex = 1; |
} |
break; |
} |
}; |
Will be greatfull if someone helps me out.