This is a migrated thread and some comments may be shown as answers.

Multiple Selection using MVVM bug

2 Answers 103 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rishabh
Top achievements
Rank 1
Rishabh asked on 13 Jun 2012, 10:04 AM
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:
  1. Screen1 - June 4 2012 is selected (June is 1st calendar view and July is 2nd Calendar view)
  2. Screen2 - about to select July 10 2012
  3. 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

2 Answers, 1 is accepted

Sort by
0
Rishabh
Top achievements
Rank 1
answered on 21 Jun 2012, 07:30 PM
Am I ever going to get a reply on this? We have our projects getting delayed due to it. At least give me some reply as to whether you guys are looking into it or not. This is highly unprofessional attitude from your side.
0
Georgi
Telerik team
answered on 26 Jun 2012, 10:18 AM
Hello Rishabh,

Sorry for the late replay.
You are right, the issue is present in the Q1 SP release. But as you can see in this PITS item ti is now fixed and the fix is available in our Q2 2012 release.

All the best,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Calendar
Asked by
Rishabh
Top achievements
Rank 1
Answers by
Rishabh
Top achievements
Rank 1
Georgi
Telerik team
Share this question
or