Welcome Guest Search | Active Topics | Sign In | Register

2 date pickers Options
marko
Posted: Monday, February 23, 2009 8:32:29 AM
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
eo_support
Posted: Monday, February 23, 2009 10:33:20 AM
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.aspx

If 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\_i0

Please feel free to let us know if you have any more questions.

Thanks!
marko
Posted: Tuesday, February 24, 2009 2:35:00 AM
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?
eo_support
Posted: Tuesday, February 24, 2009 7:31:39 AM
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!
marko
Posted: Wednesday, February 25, 2009 2:05:51 AM
Rank: Newbie
Groups: Member

Joined: 2/20/2009
Posts: 3
hy,

that would be great,

thanx
eo_support
Posted: Monday, March 9, 2009 9:12:22 PM
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!
Saed
Posted: Monday, March 9, 2009 10:17:20 PM
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
eo_support
Posted: Monday, March 9, 2009 10:38:12 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
The new build will soon be publicly available.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.