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

Cannot Change Value When Binding to SelectedValue

1 Answer 88 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Brett
Top achievements
Rank 1
Brett asked on 15 Jun 2011, 03:37 PM
I have two RadDateTimePickers in a DataForm and I'm binding a starting date to one and an ending date to another.  If I don't bind to the selectedvalue in xaml, I can change the value in the RadDateTimePickers.  If I bind the selectedvalue, I cannot change that value, the picker is read-only.  Here is the xaml code for both pickers

<toolkit:DataField Label="Red Light Start" Width="325">
                            <telerik:RadDateTimePicker x:Name="StartDate" SelectedValue="{Binding StartDate,Mode=TwoWay}" Width="200" />
                        </toolkit:DataField>
                        <toolkit:DataField Label="Red Light End" Width="325">
                            <telerik:RadDateTimePicker x:Name="EndDate" SelectedValue="{Binding EndDate,Mode=TwoWay}" Width="200" />
                        </toolkit:DataField>

What changes to I need to made to be able to edit both dates and still use bindings.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 17 Jun 2011, 02:29 PM
Hi Brett,

I've tried to reproduce this issue but to no avail. Could you please download the attached project and try it? What is different in your case?

All the best,
Yana
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
DateTimePicker
Asked by
Brett
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or