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

DateTime formatting

1 Answer 141 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Srikanth
Top achievements
Rank 1
Srikanth asked on 07 Jun 2018, 03:47 PM

Hi,

I was wondering if there was a way to provide the format to display a formatted DateTime like we do with the DateTimeFormatString in other grids. I am looking to have the datatype of the field as DateTime to preserve the filtering. Any advice in this regard would be greatly appreciated.

 

Thanks,

Sri

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 12 Jun 2018, 02:27 PM
Hi Sri,

I guess that you are working with a DataProvider. So what you can try in order to change the format of a DateTime value is to inherit the DataProvider and customize the OnCellValueNeeded method. In it, you can return whatever you want value for a given cell. More information about how to create a custom provider can be found in this help article.

Regards,
Yoan
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
VirtualGrid
Asked by
Srikanth
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or