RadDateTimeEditor Keyboard navigation issue.

2 posts, 0 answers
  1. Ashwin
    Ashwin avatar
    3 posts
    Member since:
    Jan 2013

    Posted 18 Jan 2013 Link to this post

    We have a very specific requirement , where the user would like to enter Date in the RadGridView Cell which has editor of type RadDateTime Editor . In this cell the the user will be entering date in format MM/dd/YYYY and while entering the date the user should be allowed to continuously type the date without having to use the arrow keys to navigate between date, month and year. For example if user types a date like "02172013" the RadDateTimeEditor should automalically fill up the month portion (once "02" is typed) and then push the cursor to date portion when user types "17" and then push the cursor to year portion once user starts typing "2013" and finally dispaly the date as "02/17/2013"

    1)User has to use the arrow key to move from month section to date then again he need use arrow keys to move from date to year, as expalined above this should not be required.
    2)When we click on the cell having RadDateTime Editor and tabs out of the cell then the date cell gets populated with current date . Expected behaviour is if user has not entered/selected any date then it should default to blank.

    Please let me know if such a thing is possible using RadDateTimeEditor ? or I need to use some other editor ?

    We are using the following code :




    Sub RadGridView_EditorRequired(ByVal sender As Object, ByVal e As EditorRequiredEventArgs)




        Dim fieldType As String = RadGridView.CurrentRow.Cells(CELL_FIELD_TYPE).Value.ToString()


        e.Editor = GetEditor(fieldType)



    End Sub





    Function GetEditor(fieldType As String) As IValueEditor





    Case fieldType




















    editorDate As RadDateTimeEditor = New RadDateTimeEditor()




                    Dim calendar As RadDateTimeEditorElement = DirectCast(editorDate.EditorElement, RadDateTimeEditorElement)


                    calendar.Format =




                    calendar.AllowDrop =


























    Thank you,


  2. Peter
    Peter avatar
    1160 posts

    Posted 21 Jan 2013 Link to this post

    Hello Ashwin,

    Thank you for writing.

    Our RadDateTimePicker does not support this input method, because we want to have a strictly validated date in every moment the user types. 

    We do not offer an alternative control or behavior that allows this kind of input. A feature request for such is available in our Public Issue Tracker. Feel free to add your vote for it here: 

    As to the issue when tabbing our of the cell and the cell gets populated with current date, I was not able to reproduce it with version 2012.3.1211 - please, refer to the attached video. Could you clarify which version of the controls do you use? 

    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Back to Top