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

6 posts, 0 answers
  1. James
    James avatar
    41 posts
    Member since:
    Jul 2007

    Posted 07 Sep 2009 Link to this post

    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?
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 09 Sep 2009 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. James
    James avatar
    41 posts
    Member since:
    Jul 2007

    Posted 09 Sep 2009 Link to this post

    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.
  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Sep 2009 Link to this post

    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.
  6. James
    James avatar
    41 posts
    Member since:
    Jul 2007

    Posted 13 Sep 2009 Link to this post

    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.
  7. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 15 Sep 2009 Link to this post

    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready