Hi,
I am going through replacing any RadDatePicker's I have with the RadDateTimePicker and have come across a couple of things.
Can I suggest that when the InputMode is set to DatePicker only, that when a selection is made, the calendar drop down automatically closes. I know this wouldn't work for DataTimePicker mode, but perhaps a property could be exposed to switch it on for DataPicker and TimePickers? I have created an attached property to create the desired behaviour so it's working well for me in that sense.
The other issue I have is when the RadDatePicker has focus by a mouse click. I have noticed that the SelectAll and Select methods have been deprecated, and that the DatePicker automatically selects all when it receives keyboard focus.
This is the desired behaviour I have, however, if the mouse is used to give the control focus, the text is selected briefly but then immediatly is deselected and the cursor is placed at the mouse click.
Normally to overcome this, I would handle the PreviewMouseLeftButtonDown event by checking the RadDateTimePicker.IsKeyboardFocusWithin property. This still works, however it basically stops the Calendar from being opened when the DatePicker does not have focus and the RadButton is clicked.
My question, can the DatePicker SelectAll behaviour be modified so when it is focused via a mouse click, the text stays focused and does not immediatly de-select all?
Thanks,
Adam Marshall
I am going through replacing any RadDatePicker's I have with the RadDateTimePicker and have come across a couple of things.
Can I suggest that when the InputMode is set to DatePicker only, that when a selection is made, the calendar drop down automatically closes. I know this wouldn't work for DataTimePicker mode, but perhaps a property could be exposed to switch it on for DataPicker and TimePickers? I have created an attached property to create the desired behaviour so it's working well for me in that sense.
The other issue I have is when the RadDatePicker has focus by a mouse click. I have noticed that the SelectAll and Select methods have been deprecated, and that the DatePicker automatically selects all when it receives keyboard focus.
This is the desired behaviour I have, however, if the mouse is used to give the control focus, the text is selected briefly but then immediatly is deselected and the cursor is placed at the mouse click.
Normally to overcome this, I would handle the PreviewMouseLeftButtonDown event by checking the RadDateTimePicker.IsKeyboardFocusWithin property. This still works, however it basically stops the Calendar from being opened when the DatePicker does not have focus and the RadButton is clicked.
My question, can the DatePicker SelectAll behaviour be modified so when it is focused via a mouse click, the text stays focused and does not immediatly de-select all?
Thanks,
Adam Marshall