Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
615
Multi-selection and the clientside SelectionChanged event
posted

I'm trying to make a WebMonthCalendar with multi-selection enabled and catching the selected date-range in Javascript. However, the SelectionChanged event is fired every time you select a date. So when I drag a date selection, the event is called a lot of times. How can I determine if the multiselection is complete?

Parents
  • 24497
    Suggested Answer
    posted

    Hi,

    The WebMonthCalendar is not able to detect "end" of range selection, because it can be ended by various situations which are not possible to catch. For example, in case of mouse-drag it can be ended not only by mouse-up, but by mouse-out of control bounds as well. Selection on shift+arrows/page/etc. is ended by last time action-key is pressed, but it is not possible to guess when user will decide to stop pressing keys.

Reply Children