Hi,
I am Srinivasa
in my project i have a problem for bind the Date form backend table to RadDatePicker in Rad Grid. But in my data Base in date column i have a empty value.
here i am using the client side coding for bind Date data to RadDatePicker in RadGrid like the following way...
<telerik:RadDatePicker ID="actstart" runat="server" MaxDate='<%# Convert.ToDateTime(Eval("early_start_display")).ToString("dd/MMM/yyyy") %>' Width="100px" Calendar-ShowOtherMonthsDays="false"
Calendar-ShowRowHeaders="false" DbSelectedDate='<%# Bind("actual_start") %>' DateInput-DateFormat="MM/dd/yyyy">
</telerik:RadDatePicker>
But it shows the error at the time of Date Column Null value in the DataBase...
Error is :
object cannot be cast from dbnull to other types
Please Help me.
Thanks
D.Srinivasa
I am Srinivasa
in my project i have a problem for bind the Date form backend table to RadDatePicker in Rad Grid. But in my data Base in date column i have a empty value.
here i am using the client side coding for bind Date data to RadDatePicker in RadGrid like the following way...
<telerik:RadDatePicker ID="actstart" runat="server" MaxDate='<%# Convert.ToDateTime(Eval("early_start_display")).ToString("dd/MMM/yyyy") %>' Width="100px" Calendar-ShowOtherMonthsDays="false"
Calendar-ShowRowHeaders="false" DbSelectedDate='<%# Bind("actual_start") %>' DateInput-DateFormat="MM/dd/yyyy">
</telerik:RadDatePicker>
But it shows the error at the time of Date Column Null value in the DataBase...
Error is :
object cannot be cast from dbnull to other types
Please Help me.
Thanks
D.Srinivasa