From & To date, best way to do ?

2 posts, 0 answers
  1. Theron Kousek
    Theron Kousek avatar
    6 posts
    Member since:
    Apr 2010

    Posted 27 Apr 2010 Link to this post


    We're deciding if this particular use of RadCalendar would be non-practical.

    We will need to have a from / to range selection on our screen.   No matter what is selected in the from, it should always use "1" as the day.   No matter what is selected in the to, it should always use the very last day in that month.

    The screen would have:

    From [ radcalendar1 ]          To [ radcalendary2 ]

    So no matter what day they select in radcalendar1, "day 1" will be selected.  and "last day of month" would be selected in the 2nd one.

    Would the best way to do that be "programmatically" by setting the selectedDate property in the code behind?
  2. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 29 Apr 2010 Link to this post

    Hi Theron Kousek,

    One option is to constraint the user to select only dates defined by you. This can be accomplished by using the DayTemplateSelector property of the control. Find relevant information in our online example.
    Also it is possible all of the tasks needed to be done in the code behind, as you suggested.

    Kind regards,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top