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

Override null in the DatePicker field in Grid

2 Answers 108 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Kavitha
Top achievements
Rank 1
Kavitha asked on 31 Jul 2012, 11:12 PM
I have a requirement where the application has to allow the users to not enter or select any date in the DatePicker control that is present in the grid. If no date is selected the value goes back to the database as null and also shows up as null in the grid.I do not want null to show up in the grid, is there a way to override the null value with something more meaningful like 'TBD' or just leave it empty and not display anything in that field.

2 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 03 Aug 2012, 02:48 PM
Hello Kavitha,

You need to use a template (depending on your binding) which checks if the value is null - display "TBD" else display the actual value.

Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kavitha
Top achievements
Rank 1
answered on 03 Aug 2012, 03:01 PM
Thank you very much for the reply. That works.

-Kavitha
Tags
Date/Time Pickers
Asked by
Kavitha
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Kavitha
Top achievements
Rank 1
Share this question
or