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

Parsing in Expression Columns

2 Answers 112 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 11 Jan 2021, 02:43 PM

Hi there, I am using a radgridview and want to allow users to select a format for data within columns, testing this for dates I noticed that it wasn't working for expression columns that contain a string representation of the data rather than a type such as DateTime, if I make one using Now() or Today() the format string does appear to work, is there a way to parse data in an expression column into a datatype?

2 Answers, 1 is accepted

Sort by
0
Jack
Top achievements
Rank 1
answered on 12 Jan 2021, 10:02 AM

Solved the issue by adding custom expression functions

https://docs.telerik.com/devtools/wpf/controls/radgridview/columns/data-formatting

0
Jack
Top achievements
Rank 1
answered on 12 Jan 2021, 10:04 AM

Wrong link sorry, used custom functions documented here

https://docs.telerik.com/devtools/wpf/controls/radexpressioneditor/expressions/custom-functions-and-categories

Tags
GridView
Asked by
Jack
Top achievements
Rank 1
Answers by
Jack
Top achievements
Rank 1
Share this question
or