This question is locked. New answers and comments are not allowed.
Hi,
I'm using a RadCalendar in an MVVM scenario to select multiple dates with reference from this article: http://blogs.telerik.com/blogs/posts/11-06-13/using-the-multiple-selection-of-the-radcalendar-control-for-silverlight-and-wpf-with-mvvm.aspx
The project attached at the end of the article works fine. But my project references version 2012.1.326.1050 dlls, so I referenced those dlls in the project from the above link to try to reproduce the problem.
The problem arises when you have set the Calendar's Row/Column property to more than 1. Suppose you have put Rows="2", select a date in the first calendar view and then try to select a single date in the bottom(second) calendar view. Now ideally the selected date should only be the one selected in the second calendar view, but actual the result is that a range of dates gets selected. The range starts from the date you wanted to select in the second calendar, and proceeds to about 30 dates.
More precisely speaking, the calendar captures the mouse click when you try to select the date in the second calendar view and then without leaving the mouse click, makes the second calendar view as the first view adding a new calendar view in it's place and then the calendar leaves the mouse capture thereby making it equivalent to a click and drag action resulting in the selection of multiple dates.
I am attaching the screen shots to show the behaviour:
Note: The above scenario was working fine with dlls version 2011.1.0419.1040
I'm using a RadCalendar in an MVVM scenario to select multiple dates with reference from this article: http://blogs.telerik.com/blogs/posts/11-06-13/using-the-multiple-selection-of-the-radcalendar-control-for-silverlight-and-wpf-with-mvvm.aspx
The project attached at the end of the article works fine. But my project references version 2012.1.326.1050 dlls, so I referenced those dlls in the project from the above link to try to reproduce the problem.
The problem arises when you have set the Calendar's Row/Column property to more than 1. Suppose you have put Rows="2", select a date in the first calendar view and then try to select a single date in the bottom(second) calendar view. Now ideally the selected date should only be the one selected in the second calendar view, but actual the result is that a range of dates gets selected. The range starts from the date you wanted to select in the second calendar, and proceeds to about 30 dates.
More precisely speaking, the calendar captures the mouse click when you try to select the date in the second calendar view and then without leaving the mouse click, makes the second calendar view as the first view adding a new calendar view in it's place and then the calendar leaves the mouse capture thereby making it equivalent to a click and drag action resulting in the selection of multiple dates.
I am attaching the screen shots to show the behaviour:
- Screen1 - June 4 2012 is selected (June is 1st calendar view and July is 2nd Calendar view)
- Screen2 - about to select July 10 2012
- Screen3 - After clicking on July 10, July becomes the first calendar view and a range of dates(10 July 2012 to 7 August 2012) is selected instead of only 10 July 2012 being selected.
Note: The above scenario was working fine with dlls version 2011.1.0419.1040