|
Rank: Newbie Groups: Member
Joined: 2/20/2009 Posts: 3
|
hay,
i have 2 date pickers,
for the first picker I set :
DatePicker1.MinValidDate=DateTime.Now;
and now I want to set to the second the MinValidDate to the selected date of the first date picker(so that user can't select the second time before the first). I used this:
private void DatePicker1_SelectionChanged(object sender, System.EventArgs e) { DatePicker2.MinValidDate=DatePicker1.SelectedDate; }
but it dosen't work,any help?
thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, SelectionChanged event doesn't fire until the page posts back. You can set this property to true so that the page automatically posts back when you select a date: http://doc.essentialobjects.com/library/1/eo.web.calendar.autopostbackonselect.aspxIf you want to avoid post back and is familiar with JavaScript, you can use our client side JavaScript API to validate the input, Here is a working sample for this: http://demo.essentialobjects.com/Default.aspx?path=Calendar\_i2\_i0Please feel free to let us know if you have any more questions. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2009 Posts: 3
|
thanx on the quick answ. One more question, is it poseble to set to show the calendar when the user clicks on the text box and not only on the image calendar?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That is not currently supported. However I would think it makes sense to have it. We will look into it and see if we can add that.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 2/20/2009 Posts: 3
|
hy,
that would be great,
thanx
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have posted a new build (2008.0.68) that would allow user to click the textbox to show the calendar popup. Please see your private message for download location.
You would set the DatePicker's PopupTrigger property to enable this feature.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 10/15/2008 Posts: 45
|
What about us other users? Any chance of getting latest build? I'm interested in having requested feature. Download page still shows 63 as the latest.
Regards,
Saed Hamdan "Man may be destroyed but not defeated" -Hemmingway
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
The new build will soon be publicly available.
|
|