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

Setting the DateSelectionMode Dynamically

1 Answer 28 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Jarrod
Top achievements
Rank 1
Jarrod asked on 17 Jun 2011, 05:21 PM
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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Konstantina
Telerik team
answered on 21 Jun 2011, 02:47 PM
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?

Regards,
Konstantina
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
Tags
DatePicker
Asked by
Jarrod
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or