|
Rank: Newbie Groups: Member
Joined: 4/1/2010 Posts: 4
|
I'm having issues trying to databind the date picker in my asp.net detailsView. I'm starting to wonder if it is even possible. The code i'm using is:
<asp:TemplateField HeaderText="Date"> <ItemTemplate> <eo:DatePicker ID="DatePicker1" runat="server" SelectedDates='<%# Bind("Date") %>'> </eo:DatePicker> </ItemTemplate> </asp:TemplateField>
Please help, I'm a newbie..
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You would bind to SelectedDataString property.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/1/2010 Posts: 4
|
Hi again,
The SelectedDataString property for the date picker control does not exist. I have downloaded the E.O Web Controls for ASP.NET; Is it possible to databind the date picker with my version?
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Just type it in. It is there. It's an advanced property so you won't see it in the list.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/1/2010 Posts: 4
|
Hello again, Yea I tried that so I guess I'm doing something wrong here's my code:
Code: HTML/ASPX
<eo:DatePicker ID="DatePicker1" runat="server" SelectedDataString='<%# Bind("Date") %>'>
</eo:DatePicker>
However, I'm coming up with this error message. Parser Error Message: Two-way binding is only supported for properties. 'SelectedDataString' is not a valid property on 'DatePicker'
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Sorry. It should be SelectedDateString, not SelectedDataString.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/1/2010 Posts: 4
|
Hello Again, Oh, Kinda obvious... Haha, I think it's too early in the morning for me. Thanks so much.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You are welcome. Please feel free to let us know if you have any more questions.
Thanks!
|
|