Hi everyone !
I'm working with a XamComboEditor and it show a validation message in a red tooltip.
Do you know how to avoid this message?
<ig:XamComboEditor Margin="4,4,4,0" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="4" SelectedValue="{ed:BindingEx CustomerUId, Mandatory=And, Mode=TwoWay}" ItemsSource="{Binding Source={StaticResource CurrentCustomers}}" DisplayMemberPath="Name" Validation.Error="false" SelectedValuePath="Value"> <ig:XamComboEditor.ItemFilters> <ig:ComboItemFilter LogicalOperator="And"> <ig:ComparisonCondition Operator="Contains" /> </ig:ComboItemFilter> </ig:XamComboEditor.ItemFilters> </ig:XamComboEditor>
Hello Mariano,
I understand , you dont want to do so much testing but without making code modification and testing i am not sure how can you do that, specially when you set it to your code somehow you dont know.
If you see my sample , i dont have that red box validation . And also that red box is a validation , you cant just pass the validation without modifying your code .
So you can either modify my sample showing how you are getting the validation or create your dummy sample and isolate the code(keep commenting the irrelevant code until you find the validation code)
The validator message appears in the OnMouseOver event.
Hi Divya, Thank you for your response.
I'm not using IDataErrorInfo and there isn't code related to INotifyDataErrorInfo. I don't want to change the binding, because it is an old application that is very coupled, and if I do that, we will have to do a lot of tests. Then I just need something to avoid the red validation.
Thank you for the post. Normally this red error box comes from the IDataErrorInfo , so are you using it to propagate error text to the UI ? At my end when I simply binding the combo with the data ,there is no error box, so look into your code and remove the code related to INotifyDataErrorInfo if you don’t want that, and simply bind the combo with the datacontext. Attached my sample for the reference.
2287.WpfApp6.zip