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

URGENT!!!!!!! radCalendar not deselect dates correctly.

1 Answer 297 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 08 May 2008, 07:23 PM
Using Q1 2008 release.

I am experiencing a problem with the radCalendar control in that when I want to unselect a selected date, the only way that I can get it to unselect is to click on the one i want to remove and then click on any other date, which effectivley selects the new date, and is not preferred.

I want to be able to simply unselect a date by clicking on it, and i do NOT expect to have to write code to do it. It does not work in single select mode or multiselect mode.

to see an example of what i am describing, you can look no further than the Telerik control demo project that is installed with the product.

From the Demo app choose RadCalender, and the Selection Demo. With Allow Multiple Select enabled, click a few dates. Then simply try to unselect one of the dates that you previously selected. I tried single click, double click, ctrl click, right click, click + del, click + backspace.. etc. The only way to deselect a date is to click the date and then click some other date.

I think i am going to start charging telerik for all of the wasted time i have spent trying to figure out workarounds to these controls. Please BUGTEST the controls before releasing ANY new control sets. Get the products stable first, then add new features second, so that paying customers who have project deadlines can actually use the controls for their intended purposes rather than having to submit forum entries to hope that someone has a hack solution to a problem that other control sets do by DEFAULT!!!!!

1 Answer, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 09 May 2008, 07:43 AM
Hi Mike,

I do not think that the described behavior is a bug but a feature. We have a state in RadCalendar which is called the focused date. The focused date is the date where the focus is on. For example, when you click on a cell, its selection state is toggled and that cell gets focused. The focused date state is represented visually like the selectedDate and this is why you probably think there is a problem here.

Please try the following:

  1. Select few dates.
  2. Click on some of the selected date to unselect it.
A single click toggles the selection state when the multiple selection is allowed. Until you are on the unselected date, move around with arrows and you will see that you are actually moving the focused date starting from the position where you have clicked before to unselect the date.

You can also check the selected dates collection of RadCalendar to see that there is no such selected date. To access this collection, use the SelectedDates property of RadCalendar. You may find the SelectedDate and FocusedDate properties helpful in this case.

Please don't hesitate to write me back if you need additional information. 

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Mike
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Share this question
or