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

Ability to have 'Exceptions' to the SelectableDateStart and SelectableDateEnd values

5 Answers 87 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 07 Sep 2009, 06:51 AM
I've got a screen that has a few date pickers on it, used for Due Date, Start Date and Completion Date.

The software I'm writing has limits on how far forward/backward you can select a date, so a Completion Date can only be before or on Today's date, but not more than 1 week before today's date, likewise with the Start Date.

To implement this easily I've used the SelectableDateStart and SelectableDateEnd values.  These work well for my purposes, except for this case:

Users will often enter in a start date, then maybe 3 weeks later when the task is completed they come into the same screen to fill in the completion date.

The problem that occurs is that I'd like the already selected start date to be a valid entry in the RadDatePicker - the existing date shows up, but if the user happens to change the value, they can't get the originally selected start date back unless they exit the screen without saving.

What would be ideal in this situation is that in addition to the range of selectable dates you have an array/list, which allows you to specify other dates that can be selected that are outside of the range of SelectableDateStart and SelectableDateEnd.

Is it possible to get this feature introduced into the control?

5 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 09 Sep 2009, 03:24 PM
Hi James,

You can consider to use a MVVM pattern. So you will have a property(some collection) in your Data Model, where you can store these dates.

Sincerely yours,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 09 Sep 2009, 05:47 PM
Hi Kaloyan

I'm not sure how that would resolve my problem.  I'm using SelectableDateStart and SelectableDateEnd to prevent the user selecting a range of dates, but I'd like them to be able to select specific 'exceptions' that are outside that range.

Solutions I can think of would be:
Multiple ranges of acceptable dates - so an array of SelectableDateStart and SelctableDateEnd pairs
Keep SelectableDateStart and SelectableDateEnd as they are, but introduce an array of dates that the control will also allow us to select.
0
Kaloyan
Telerik team
answered on 11 Sep 2009, 11:40 AM
Hello James,

Now i can understand your scenario. Unfortunately this is not possible to be achieved with the RadDatePicker control. Don't hesitate to contact us in case you need more information.

Regards,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James
Top achievements
Rank 1
answered on 14 Sep 2009, 03:27 AM
Hi Kaloyan

I understand that this isn't possible using the RadDatePicker control.  That's why I'm posting here.  I want to request this feature for the control - I think that many people would find such functionality useful, and it doesn't seem as if it would be too hard to implement.
0
Kaloyan
Telerik team
answered on 15 Sep 2009, 06:48 AM
Hi James,

Thank you for the suggestion. We will insert it to our Backlog Items List and we will include it in one of our next releases.

Best wishes,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
DatePicker
Asked by
James
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
James
Top achievements
Rank 1
Share this question
or