Hi Techies,
I do not have any run time issue but when i load the screen, i am getting the Below error message in Custom Validation part.
System.Windows.Data Error: 17 : Cannot get 'Item[]' value (type 'ValidationError') from '(Validation.Errors)' (type 'ReadOnlyObservableCollection`1'). BindingExpression:Path=(0)[0].ErrorContent; DataItem='RadDatePicker' (Name='EventStartDateTimePicker'); target element is 'RadDatePicker' (Name='EventStartDateTimePicker'); target property is 'ToolTip' (type 'Object') ArgumentOutOfRangeException:'System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
I have to resolve this issue. Why this above error is displaying? Below i have given the Xaml Part. This is what i am using
Please help me to get ride of this binding error on loading the screen.
regards
Thiruppathi V
I do not have any run time issue but when i load the screen, i am getting the Below error message in Custom Validation part.
System.Windows.Data Error: 17 : Cannot get 'Item[]' value (type 'ValidationError') from '(Validation.Errors)' (type 'ReadOnlyObservableCollection`1'). BindingExpression:Path=(0)[0].ErrorContent; DataItem='RadDatePicker' (Name='EventStartDateTimePicker'); target element is 'RadDatePicker' (Name='EventStartDateTimePicker'); target property is 'ToolTip' (type 'Object') ArgumentOutOfRangeException:'System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
I have to resolve this issue. Why this above error is displaying? Below i have given the Xaml Part. This is what i am using
<tk:RadDatePicker Grid.Row="3" Grid.Column="0" TabIndex="2" Padding="3,2,0,0" Width="85" Height="25" DateTimeWatermarkContent=" " FontSize="11.5" x:Name="EventEndDateTimePicker" FontFamily="MyriadPro-Regular" IsTooltipEnabled="False" SelectedValue="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.ViewData.EventDetail.EndDate,UpdateSourceTrigger=PropertyChanged, Mode=TwoWay,NotifyOnSourceUpdated=True,ValidatesOnDataErrors=True}" self:RadDatePickerHelper.IsFreeTextAllowed="True" self:RadDatePickerHelper.ShortDateFormat="MM/dd/yyyy" lib:Event.Binding="SelectionChanged.[DateChangeValidation]" compass:RadDateTimePickerHelper.EnableCustomFeatures="True" compass:RadDateTimePickerHelper.EnableIsCurrentDateRequiredOnDoubleClick="False" AllowDrop="False"><BR><tk:RadDatePicker.Style><BR><Style TargetType="{x:Type tk:RadDatePicker}" BasedOn="{StaticResource DatePickerStyle}"><BR><Style.Triggers><BR><Trigger Property="Validation.HasError" Value="True"><BR><Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}" /><BR></Trigger><BR></Style.Triggers><BR></Style><BR></tk:RadDatePicker.Style><BR></tk:RadDatePicker><BR><BR>
​regards
Thiruppathi V