I have a RadCalendar control that I want to show up in an ItemTemplate of a grid.
The problem is the object I am binding to (web service) returns the date in a string format, so when the bind executes, I get an invalid cast error.
Is there a way to convert the string to a datetime so that the Bind operation can be used within the selectedDate property?
Here is what I want to be able to write
But, I get the invalid cast. This there another way to do this?
The problem is the object I am binding to (web service) returns the date in a string format, so when the bind executes, I get an invalid cast error.
Is there a way to convert the string to a datetime so that the Bind operation can be used within the selectedDate property?
Here is what I want to be able to write
<telerik:GridTemplateColumn DataField="PositionStartDate.Value" HeaderText="Position Start Date" DataType="System.DateTime"> <ItemTemplate> <telerik:RadCalendar ID="uxPositionStart" runat="server" SelectedDate='<%# Bind("PositionStartDate") %>'> </telerik:RadCalendar> </ItemTemplate> </telerik:GridTemplateColumn> But, I get the invalid cast. This there another way to do this?