This is a migrated thread and some comments may be shown as answers.

How do Format Date Column in Edit Mode of the grid

1 Answer 254 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rajaram
Top achievements
Rank 1
Rajaram asked on 05 Jun 2018, 04:00 PM
How do Format Date Column in Edit Mode of the grid. I am using the WPF controls. I have to display the date values in 'dd/MM/yyyy' format in edit mode. I see there is no EditorRequiredEvent in case of WPF controls.So how do I change the format in these case?
My problem is when I click on the cell, the RadDateTimePicker considers the date as MM/dd/yyyy and it displays empty value. For example 13/05/2018 will show empty because 13 is not a valid month. So how to change this so that the it shows the required date format in Edit mode? Please help

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 07 Jun 2018, 02:40 PM
Hi Rajaram,

You should be able to achieve this by setting a custom CellEditTemplate for the column. You can define a RadDateTimePicker in it and configure its Formatting. Can you please take a look at these resources?

I hope this helps.

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Rajaram
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or