Selecting same date

This post has 6 replies

Not Ranked
Posts: 8
sport-solution Posted: Mon Jun 16, 2008 @ 7:08 AM
Hey

I would like to know if its possible to to call some javascript when selecting the already selected date ?
Top 10 Contributor
Posts: 6,424
hwan Posted: Wed Jun 25, 2008 @ 1:40 PM
Due to popular demand, we changed the behavior of the selectionChanged event to reflect the name of the event. As such, clicking on already selected dates does not raise selectionChanged.

You can achieve the old behavior by adding this snippet to the bottom of your page:
<script>
window.cart_calendar_PostBackOnSameSelection = true;
</script>

We may expose the above as a property at some later date. We apologize for the inconvenience this may have caused users.
Top 500 Contributor
Posts: 20
pfletcher Posted: Sat Oct 25, 2008 @ 10:55 AM
Thanks hwan. Same issue here, and that snipped worked.

A property for this PostBackOnSameSelection would be great, I've needed to use this functionality on two projects already and it makes perfect sense to have it...

- Associated Picker is Blank (user has not selected a date)
- Calendar opens with Today's Date pre-selected
- User selects Today's date

I can't think of an application where you wouldn't want that behaviour to happen, so yeah making that a documented property, or maybe even an additional onSelection event that will fire on any selection, the way it used to work for selectionChanged.
Top 10 Contributor
Posts: 6,424
hwan Posted: Tue Oct 28, 2008 @ 4:26 PM
Ok, thanks for the input. I've passed it along to the developers.
Top 150 Contributor
Posts: 39
peelay Posted: Wed Oct 29, 2008 @ 9:31 AM
I'd just like to chime in to say that I have the exact same scenario as well.
- Associated Picker is Blank (user has not selected a date)
- Calendar opens with Today's Date pre-selected
- User selects Today's date
Thankfully I found this post and the solution works for me as well. Naturally I'd like to see this functionality added back instead of the work around.

Thanks!
Phill
Top 10 Contributor
Posts: 1,736
Chris Posted: Fri Oct 9, 2009 @ 1:39 PM
Hi,

In 2009.2.1509, you can set ReactOnSameSelection = true on the calendar and this will work for you.

You can download my working sample (using 2009.2 samples) by clicking the link underneath the title of this post.

Hope this helps.

Cheers,


Christopher Moncayo,
Solutions Architect
ComponentArt Inc.
Not Ranked
Posts: 17
flex563 Posted: Thu Nov 5, 2009 @ 1:21 PM
nice
Flex,,,,
Page 1 of 1 (7 items)