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

Date format for a row in a RadGrid

1 Answer 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aleksandr
Top achievements
Rank 1
Aleksandr asked on 15 Jan 2016, 06:16 AM

 

Hi everyone,

I have a radgrid where every column begins with a date (first row is a date).

Is there a way to set a date formatting for a Row within a RadGrid?

Thank you

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 19 Jan 2016, 01:26 PM
Hello,

If you would like to change the appearance of some cells in RadGrid based on their value you can use the ItemDataBound event. Check out the following article that describes the approach in more detail.


With that said, please note that it is not recommended to have fields with mixed data types (e.g. Date and number). This would require you to make the type of the field string. Thus, you would need more complex logic to operate with that data.

If this is the case it is recommended to change the structure of the database so that only one value type is present in a given field.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Aleksandr
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or