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

date column

1 Answer 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
carlos
Top achievements
Rank 1
carlos asked on 08 Dec 2008, 01:56 PM
hy friends,

i have a column that shows date data. when I need to add a new record I want to display a raddatepicker instead of a textbox. Whats the best way to achive this?

I created a template field with a datepicker inside the "edititemtemplate" and bounded it to the desired field, but when I click the add record in gridview button the following msg is displayed:

"Invalidcastexception was unhandled by user code"

thanks for the help

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 08 Dec 2008, 02:06 PM
Hi Carlos,

The best thing is to use a GridDateTimeColumn, as demonstrated here:

http://demos.telerik.com/aspnet-ajax/Grid/Examples/GeneralFeatures/ColumnTypes/DefaultCS.aspx

Regards,
Dimo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
carlos
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or