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
85
WebMonthCalendar OnSelectedDateChanged event fires unexpectedly
posted

Hello,

I have WebMonthCalendar implemented to my aspx page. Selection type is set "multi", because I want to be able to select whole weeks as date range.

I have declared OnSelectedDateChanged event for control like this :

 

protected void calendarMaintenance_OnSelectedDateChanged(object sender, CalendarSelectedDateChangedEventArgs e)

    {

//do somethin

}

 

This event is fired nicely when I click day or week number in web month calendar.

My problem is now, that when week is clicked and I want to fire another event on page, this OnSelectedDateChanged event fires too. If I have first selected only one day and then try to push another button that fires postback on page, this problem does not occur. 

Is this a feature or bad behaviour?

 

BR, Tommy