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
140
Unable to tab out from UltraCombo control, when control data bindings Value, Text properties with null data source.
posted

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.

Parents
No Data
Reply
  • 469350
    Offline posted

    Are you binding both the Value and Text properties of the control to different fields? That doesn't make sense and it might be the cause of the problem.

    The Value and the Text are linked together. In fact, they are always the same value in the UltraTextEditor and are not stored separately. So unless your "xValue" and "xKey" values are always exactly the same, this will cause a problem. Even if they are not the same, editing the UltraTextEditor will end up trying to update both fields to the same value, which makes the value redundant at the very least and potentially dangerous at worst.

    Try binding either the Value or the Text and not both and see if that helps. If not, and you still see the problem when bound to only one field, then my guess is that your data source is not updateable or cannot accept the current value of the UltraTextEditor for some reason.

Children