Cannot Change Value When Binding to SelectedValue

2 posts, 0 answers
  1. Brett
    Brett avatar
    15 posts
    Member since:
    Sep 2010

    Posted 15 Jun 2011 Link to this post

    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 Label="Red Light End" Width="325">
                                <telerik:RadDateTimePicker x:Name="EndDate" SelectedValue="{Binding EndDate,Mode=TwoWay}" Width="200" />

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

  2. Yana
    Yana avatar
    4548 posts

    Posted 17 Jun 2011 Link to this post

    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,
    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 banner
Back to Top