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

Binding SelectableDateEnd not working (silverlight 4)

1 Answer 71 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 05 Jun 2013, 07:48 PM
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>

1 Answer, 1 is accepted

Sort by
0
Samuel
Top achievements
Rank 1
answered on 06 Jun 2013, 11:31 AM
Also, I just tried with the RadCalendar and it works correctly.  It seems the RadDatePicker is the only control where this is an issue.
Tags
DatePicker
Asked by
Samuel
Top achievements
Rank 1
Answers by
Samuel
Top achievements
Rank 1
Share this question
or