I m using a Dataform that is binded to a entity on my view model, for one field i need to create a combobox of items , i create it and bind it ok using this code on the autogenerating event:
ComboBox makes = new ComboBox();
Binding selectedItem = new Binding("conc_claimtype")
{
ValidatesOnExceptions = true,
ValidatesOnDataErrors = true,
ValidatesOnNotifyDataErrors = true,
NotifyOnValidationError= true,
Mode = BindingMode.TwoWay
};
makes.Items.Add("AI");
makes.Items.Add("CO");
makes.Items.Add("RE");
makes.SetBinding(ComboBox.SelectedItemProperty, selectedItem);
DataField makesField = new DataField { Content = makes, Label = e.Field.Label };
e.Field = makesField;
e.Cancel = false;
I m trying to figure how i can make the popup appear in the combobox when the field is required and show the error message as the regular textbox does, if u set it to required and didn't select, it gives the validation error because i can see it on the ValidationSummary, but it dosen't schow the display label, only the error message, i think it maybe a bug with it.
what i really need it's to show that field is required with that popup like the textbox, i think i have to get some kind of style to the combobox to show validation erros right? where can i find this syle?