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

Null DateTime report parameter

1 Answer 236 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 2
Dan asked on 11 Aug 2009, 02:36 PM
I have a report with several report parameters.  Two of these are datetime parameters which, on initial report start, I want to have set to a null value.

So, I have the parameters set up as Type = DateTime  and  AllowNull = True  and  Value = Null.

In preview mode in VS, it looks fine, both parameters initialize with today's date but with the NULL checkbox on.  This is how I want it.

But when I run the report page, they initialize with no value, NULL NOT checked on, and the 'Invalid Value' icon is showing.

I have tried setting the initial values in the code with:
this.ReportParameters["dateparameter"].Value = null;
but this does not work.

Any ideas?

Dan

1 Answer, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 12 Aug 2009, 02:49 PM
Hello Dan,

Attached you can find how I try to reproduce the problem in design-time and run-time- it all works as expected. Can you please provide more information or send us sample project that demonstrates the problem?

Kind regards,
Hrisi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Dan
Top achievements
Rank 2
Answers by
Hrisi
Telerik team
Share this question
or