This question is locked. New answers and comments are not allowed.
I'm having a hard time with a datepicker and a nullable DateTime in my Telerik MVC Grid. I only got it 'kind of' working in a certain way, and even then I can't open the datepicker when it's been set to null.
What I REALLY wanted was
columns.Bound(o => o.BeginDate).Title("BeginDate"); //Won't work
columns.Bound(o => o.BeginDateText).Title("BeginDateText"); //My hack to make it display, but I wanted it editable with a datepicker.
I wish there was a way to make the grid's columns editable by choice, columns.Bound().Edit(true); But I cannot. So, on to this:
columns
.Template(
@<text>
@Html.Telerik().DatePicker().Name("dbBeginDate").Value(item.BeginDate)
</text>)
.Title("Begin Date");
However, as I mentioned, when it is bound to a null value, the box won't open. What can I do here?
What I REALLY wanted was
columns.Bound(o => o.BeginDate).Title("BeginDate"); //Won't work
columns.Bound(o => o.BeginDateText).Title("BeginDateText"); //My hack to make it display, but I wanted it editable with a datepicker.
I wish there was a way to make the grid's columns editable by choice, columns.Bound().Edit(true); But I cannot. So, on to this:
columns
.Template(
@<text>
@Html.Telerik().DatePicker().Name("dbBeginDate").Value(item.BeginDate)
</text>)
.Title("Begin Date");
However, as I mentioned, when it is bound to a null value, the box won't open. What can I do here?