Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
600
XamComboEditor does not show the ToolTip error
posted

Hello

I am using XamComboEditor version 10.2.20102.1029, in a Silverlight 4.0 application under MVVM model.

XAML:

< ig:XamComboEditor Grid Row = "1" Grid Column = "1" Margin ="3" IsEditable = "True" AllowFiltering = "True" AutoComplete = "True" P:System.Windows.controls.ItemsControl.DisplayMemberPath = "Descripcion" ItemsSource = "{Binding Path = UnidadesMedidaIndependiente}" SelectedItem = "{Binding Path = UnidadMedidaIndependiente, Mode = TwoWay, NotifyOnValidationError = true, ValidatesOnExceptions = true}" / >

ViewModel: (implements InotifyPropertyChanged and INotifyDataErrorInfo).

[Required]

public Proxy.UnidadMedidaEntity UnidadMedidaIndependiente

{

get {return this.Independiente.UnidadMedida;}

set

{

ClearErrorFromProperty ("UnidadMedidaIndependiente");

If (value == null)

{

AddErrorForProperty ("UnidadMedidaIndependiente")

new ErrorInfo

                {

P:System.Web.TraceContextRecord.IsWarning = false,

ErrorMessage = "you must select a unit of measure"

                });

}

else if (this.Independiente.UnidadMedida! = value)

        {

ValidateProperty("UnidadMedidaIndependiente",_value);

this.Independiente.UnidadMedida = value;

OnPropertyChanged ("UnidadMedidaIndependiente");

}

}

}

At start state the "UnidadMedidaIndependiente" property has the value null. If not selection is made and sent to save, it runs the method "base.ValidateEntity ()", which reported that the property is empty and must be marked as erroneous, but XamComboEditor control does not change the border color to red, or displays the ToolTip with the error message.

This same strategy works us with other controls, for example, the TextBox and the standard ComboBox.

Could you help us to identify the cause of this problem?

Thank you.

Jaimir G.