This is a migrated thread and some comments may be shown as answers.
GridBoundColumn and GridDateTimeColumn render NULL as 1/1/1
2 Answers 59 Views
This is a migrated thread and some comments may be shown as answers.
staron
Top achievements
Rank 1
staron asked on 22 Jun 2009, 07:16 AM
When using clientside databinding.

2 Answers, 1 is accepted

Sort by
0
staron
Top achievements
Rank 1
answered on 23 Jun 2009, 12:21 PM
This is a rather urgent issue as the project is due friday, any feedback is welcome.
0
Accepted
Tsvetoslav
Telerik team
answered on 25 Jun 2009, 06:57 AM
Hi Rony,

This behavior is expected when no value has been assigned to the date time field. In this case, the datetime object is initialized to its min value which is 1/1/1. What you need to do, in order to display the column data as empty when there is no datetime value in the field, is to explicitly assign to the latter a null value. For example, if you are returning a custom collection from the web service, you should make the datetime property of the custom object a Nullable type and then explicitly assign a value of null to it when your business logic requires that.

I hope this information helps.

All the best,
Tsvetoslav
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
Grid
Asked by
staron
Top achievements
Rank 1
Answers by
staron
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or