Binding SelectableDateEnd not working (silverlight 4)

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    13 posts
    Member since:
    Dec 2011

    Posted 05 Jun 2013 Link to this post

    Hello.  I'm using the RadDatePicker (Silverlight 4 version) and while I can bind the SelectableDateStart value and it works, it does not work when I set the SelectableDateEnd.  This does, however, work using the same bindings in the SDK date picker.  Is there a bug here or is there something else I need to do?

    <telerik:RadDatePicker x:Name="TaskDatePicker"
                                  Grid.Row="2"
                                  Grid.Column="1"
                                  Width="100"
                                  HorizontalAlignment="Left"
                                  VerticalAlignment="Center"
                                  DateSelectionMode="Day"
                                  DisplayDateEnd="{Binding Tag.MaxDueDate,
                                  RelativeSource={RelativeSource Self}}"
                                  DisplayDateStart="{Binding Tag.Tomorrow,
                                  RelativeSource={RelativeSource Self}}"
                                  InputMode="DatePicker"
                                  IsEnabled="{Binding Item.IsComplete,
                                  Converter={StaticResource InverseConverter}}"
                                  IsReadOnly="{Binding This,
                                  Converter={StaticResource ParentToReadOnly}}"
                                  SelectableDateEnd="{Binding Tag.MaxDueDate,
                                  RelativeSource={RelativeSource Self}}"
                                  SelectableDateStart="{Binding Tag.Tomorrow,
                                  RelativeSource={RelativeSource Self}}"
                                  SelectedValue="{Binding Item.DueDate,
                                  Mode=TwoWay}"
                                  TextAlignment="Center"
                                  Visibility="{Binding This,
                                  Converter={StaticResource ParentToVisibility}}"
                                  telerik:StyleManager.Theme="{StaticResource MainTheme}">
                                  <i:Interaction.Triggers>
                                  <i:EventTrigger EventName="Loaded">
                                  <bi:FindElementName ElementName="LayoutRoot"
                                  Path="DataContext"
                                  SetFoundValueToTagProperty="True" />
                                  </i:EventTrigger>
                                  </i:Interaction.Triggers>
                                  </telerik:RadDatePicker>
  2. Samuel
    Samuel avatar
    13 posts
    Member since:
    Dec 2011

    Posted 06 Jun 2013 Link to this post

    Also, I just tried with the RadCalendar and it works correctly.  It seems the RadDatePicker is the only control where this is an issue.
  3. DevCraft banner
Back to Top