RadGrid AllowKeyboardNavigation="true" date columns change when using arrow to go past them.

1 Answer 33 Views
DatePicker Grid
Roger
Top achievements
Rank 2
Iron
Iron
Iron
Roger asked on 21 Oct 2021, 07:38 PM | edited on 21 Oct 2021, 07:41 PM

I have a Radgrid with AllowKeyboardNavigatin="true"

When using the Keyboard arrows to move around the grid, if the arrow comes into a RadDatePicker, or even a System.DateTime datatype, the value changes by 1 month depending on if the up or down arrow was used to enter that cell.

So

1.  The cell becomes dirty just by using the up / down arrow to go past them.

2. The cell actually changes value just by using the arrow to navigate past it.

 

Is there any work around or property I can set to keep this from happening but also allow use of the keyboard arrows?

** If you hold down the ctrl key along with the arrow key this DOES NOT happen.  This could be a hard training topic for my users.

Hopefully there is another way to do this.

Thanks.

 

Roger
Top achievements
Rank 2
Iron
Iron
Iron
commented on 21 Oct 2021, 08:18 PM | edited

I found a property I can set on the DatePicker control to ignore arrow keys

DateInput-IncrementSettings-InterceptArrowKeys="false"

<telerik:RadDatePicker RenderMode="Lightweight" ID="ExpertDatePicker" MinDate="1/1/1970" runat="server" DateInput-IncrementSettings-InterceptArrowKeys="false" DbSelectedDate='<%# Bind("ExpertDate") %>'> </telerik:RadDatePicker>

This does indeed solve the issue.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Roger
Top achievements
Rank 2
Iron
Iron
Iron
answered on 21 Oct 2021, 08:19 PM
 commented on 21 Oct 2021, 03:18 PM 

I found a property I can set on the DatePicker control to ignore arrow keys

DateInput-IncrementSettings-InterceptArrowKeys="false"

<telerik:RadDatePicker RenderMode="Lightweight" ID="ExpertDatePicker" MinDate="1/1/1970" runat="server" DateInput-IncrementSettings-InterceptArrowKeys="false" DbSelectedDate='<%# Bind("ExpertDate") %>'> </telerik:RadDatePicker>

This does indeed solve the issue.

Tags
DatePicker Grid
Asked by
Roger
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Roger
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or