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

Conditional formatting on DateTime field?

2 Answers 164 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Emil Einarsson
Top achievements
Rank 1
Emil Einarsson asked on 26 Apr 2010, 02:16 PM
Hi

In my details section I have a datefield, my problem is, I want to set visible to false if the property has not been set yet.

In other words, when the report shows "1900-01-01" as it would with an unset datetime, I want it to hide it instead. How do i achieve that?

Best regards,
Emil Einarsson

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 29 Apr 2010, 09:38 AM
Hello Emil Einarsson,

To achieve your requirement you have to set a Conditional Formatting with a Style rule Visibility set to false and an Expression that checks if the value is unset.

Kind regards,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Emil Einarsson
Top achievements
Rank 1
answered on 29 Apr 2010, 09:47 AM
Hi.

I had a couple of problems with this but for others who may wonder.

I solved it by checking if expression "=Fields.EndDate < 1901-01-01" (1900-01-01 being the value if its unset). Then I set visibility false.

Thank you. Marking as answered.
Tags
General Discussions
Asked by
Emil Einarsson
Top achievements
Rank 1
Answers by
Peter
Telerik team
Emil Einarsson
Top achievements
Rank 1
Share this question
or