Hi,
I am trying to set the SelectedDate property for my date picker which comes out of a XML file. But the error that I keep on getting is:
Specified cast is not valid.
The date is in the format of 2008/01/01 in my XML file.
Here is my code:
<radG:GridTemplateColumn
HeaderText="Date Of Deposit"
UniqueName="DateOfDeposit">
<ItemTemplate>
<asp:Label ID="lblDateOfDeposit" runat="server" Text='<%# Eval("DateOfDeposit") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<radCln:RadDatePicker
ID="rdDateOfDeposit"
SelectedDate='<%# Eval("DateOfDeposit") %>'
runat="server">
<DatePopupButton
HoverImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopupHover.gif"
ImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopup.gif" />
</radCln:RadDatePicker>
</EditItemTemplate>
</radG:GridTemplateColumn>
Please can someone help me?
Thanks
Brendan
I am trying to set the SelectedDate property for my date picker which comes out of a XML file. But the error that I keep on getting is:
Specified cast is not valid.
The date is in the format of 2008/01/01 in my XML file.
Here is my code:
<radG:GridTemplateColumn
HeaderText="Date Of Deposit"
UniqueName="DateOfDeposit">
<ItemTemplate>
<asp:Label ID="lblDateOfDeposit" runat="server" Text='<%# Eval("DateOfDeposit") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<radCln:RadDatePicker
ID="rdDateOfDeposit"
SelectedDate='<%# Eval("DateOfDeposit") %>'
runat="server">
<DatePopupButton
HoverImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopupHover.gif"
ImageUrl="~/RadControls/Calendar/Skins/Default/Img/datePickerPopup.gif" />
</radCln:RadDatePicker>
</EditItemTemplate>
</radG:GridTemplateColumn>
Please can someone help me?
Thanks
Brendan