5 Answers, 1 is accepted
0
Hi Magnus,
I double check this on my side but wasn't able to reproduce it. I have used the below code.
When I press the today button only a Date format is visible in the TextBox of the RadDatePicker. Can you elaborate more on your scenario?
Regards,
Dinko
Progress Telerik
I double check this on my side but wasn't able to reproduce it. I have used the below code.
<
telerik:RadDatePicker
TodayButtonVisibility
=
"Visible"
/>
Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Magnus
Top achievements
Rank 1
answered on 03 Dec 2018, 08:54 AM
Hi, sorry for not describing the issue better. The problem arise in a RadGridView where we have a column displaying dates. If I try to filter such a column and sets the date by the Today-button (not visible by default) I guess that the grid is using the SelectedValue property, and that property includes both time and date parts and is then trying to filter with both current date and time. I realize that that the SelectedValue should include both date and time, but I would expect that a click on "Today" should set the date to the current date, and the time to zero.
0
Hello Magnus,
Thank you for the provided details.
To achieve the desired result you will need to create a custom command that sets only the SelectedDate value when the Today button is clicked and replace the default telerik:RadDateTimePickerCommands.SetToday command with your command in the RadDateTimePicker's control template. You can refer to the Editing Control Templates article for more information.
Check the attached project. I am guessing that you are placing a RadDatetimePicker control in a CellTemplate of the RadGridView. You can add the modifications of the RadDateTimePicker demonstrated in the attached project in your main application.
Regards,
Dinko
Progress Telerik
Thank you for the provided details.
To achieve the desired result you will need to create a custom command that sets only the SelectedDate value when the Today button is clicked and replace the default telerik:RadDateTimePickerCommands.SetToday command with your command in the RadDateTimePicker's control template. You can refer to the Editing Control Templates article for more information.
Check the attached project. I am guessing that you are placing a RadDatetimePicker control in a CellTemplate of the RadGridView. You can add the modifications of the RadDateTimePicker demonstrated in the attached project in your main application.
Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Hello Magnus,
As a follow-up. You can take a look at this forum thread where similar behavior was discussed. You can try the solution suggested from my colleague Martin which could be more appropriate in your scenario.
Regards,
Dinko
Progress Telerik
As a follow-up. You can take a look at this forum thread where similar behavior was discussed. You can try the solution suggested from my colleague Martin which could be more appropriate in your scenario.
Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Magnus
Top achievements
Rank 1
answered on 06 Dec 2018, 06:08 AM
Thanks.