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

DateTime Column error

3 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Terry Webster
Top achievements
Rank 2
Terry Webster asked on 25 Jun 2008, 08:31 PM

I have a datetime column in which i have dbnull values in several rows.  When I try and filter the column, I get the following:

Specified cast is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Specified cast is not valid.

It appears that the filter doesn't handle nulls.

Any ideas?

Thanks,

Terry Webster

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 26 Jun 2008, 07:17 AM
Hi Terry Webster,

We are aware of a similar problem of the Grid control in .Net 3.5. You this is the same, please set Grid's EnableLinqExpressions property to false as a temporary work around. The devs should resolve the problem for the next version of the control.

Please, excuse us for the temporary inconvenience.

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris Ruegsegger
Top achievements
Rank 1
answered on 19 Aug 2008, 06:33 PM
This is still broken in Q2 2008.

Chris
0
Konstantin Petkov
Telerik team
answered on 20 Aug 2008, 06:29 AM
Hi Chris,

Unfortunately you are correct -- we were unable to find a suitable solution to this problem. I can assure you the devs will look into this once again and the issue will be addressed in a future version of the control.

Please, excuse us for the caused inconvenience and use the work-around of disabling LINQ expressions of RadGrid in the meantime.

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Terry Webster
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Chris Ruegsegger
Top achievements
Rank 1
Share this question
or