Setting the DateSelectionMode Dynamically

2 posts, 1 answers
  1. Jarrod
    Jarrod avatar
    15 posts
    Member since:
    Jan 2011

    Posted 17 Jun 2011 Link to this post

    Hi There,

    I am using the RadDatePicker control in a RadGridView control and I have a requirement to use the data on the current row to set the DateSelectionMode on the given row.

    i.e. On one row the data may require that the user is only able to select the month, but on another row in the grid the user may be able to select a specific date.

    Is this possible? I have had a look at some of the other examples, but when trying to twist them to my requirement I am not getting the behaviour I am expecting.

    Thanks in advance.
  2. Answer
    Konstantina avatar
    2332 posts

    Posted 21 Jun 2011 Link to this post

    Hello Jarrod,

    Yes, you can set the DateSelectionMode dynamically. You can see an example how the DateSelectionMode property is bound to the SelectedValue property of a ComboBox in this online demo.
    Could you please elaborate more on your scenario - what specific difficulties do you experience?

    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