Hi,
I need your help, pleas.. I'm trying to edit some fields in my detailsview and it works fine except the RadDateTimePicker.
I used it in the EditItemTemplate as below:
| <asp:TemplateField HeaderText="IN"> |
| <EditItemTemplate> |
| <telerik:RadDateTimePicker ID="RadDateTimePicker1" Runat="server" |
| AutoPostBackControl='<%# bind("CHECKIN") %>' Culture="English (United States)" |
| Enabled='<%# bind("CHECKIN") %>' SharedCalendar='<%# bind("CHECKIN") %>' |
| SharedTimeView='<%# bind("CHECKIN") %>' Visible='<%# bind("CHECKIN") %>' > |
| </telerik:RadDateTimePicker> |
| </EditItemTemplate> |
| <ItemTemplate> |
| <asp:Label ID="Label1" runat="server" Text='<%# eval("CHECKIN") %>' DataFormatString="{0:MM/DD/YYYY HH:MI:SS AM}" |
| HtmlEncode="false"> |
| </asp:Label> |
| </ItemTemplate> |
| </asp:TemplateField> |
and i get this error:
System.InvalidCastException: Conversion from type 'Date' to type 'Integer' isnot valid.
i tried to solve this by many ways but all of them didn't work
I think the problem is in the data binding method but i couldn't find the correct format?
I appreciate your reply, Thanks
