In my project, I have INGRAGISTICS 11.1 version. I’m getting the issue in UltraCombo control. Unable to tab out from control.
When we try to find the cause, we observed that OnValidating is failing (always e.cancel = true is returning).
I have XML entity data binding, in my form.
Binding sample code:
this.cmbListC.DataBindings.Add("Value", xKey, "InnerXml");
this.cmbListC.DataBindings.Add("Text", xValue, "InnerXml");
Why always e.cancel is retuning true when data source is null.
Durga,
Only set it to false when there isn't a value. Perform a if check and when the combo is provided a value the value changed event will fire. There you can enable Validation and continue as planned. You won't need validation when there isn't a value right?
Michael, setting the property CausesValidation to 'false' will skip the control Validating & Validated events.
but in this events i have some logic. now it is not invoking. so what is the solution for this.
Hello Durga,
I have a strong feeling that in 7.1 there were issues with validating. The reason I bring this up is because the control is designed to validate when you try to leave focus. Because there isn't a value it won't let you leave focus until you do something. Normally if a control is empty it should be read-only so the end user cannot enter edit mode and to specifically avoid these types of situations. I strongly recommend not having the combo present or be interacted with if it's empty.
You can toggle off the validation with the CausesValidation property set to false to address this behavior.
cmbListB.CausesValidation = false;
Let me know if you have any questions regarding this matter.
Hi Michael, if i change DropDownStyle to DropDown it's working fine but with this default style, control allowing user to enter text but my requirement is no not to allow any text.
The issue seems to be related to setting the DropDownStyle to DropDownList. I changed it back to it's default and I was able to tab through the controls. The editor is filled with "(none)" though. I'm still investigating this.