We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ComboBoxAdv hangs.

I'm using Syncfusion version 7.4 in VS2008 for .NET 2.0.
ComboBoxAdv has AllowNewText property set to false: user could type the allowed value.
SelectedValue is bound to the nullable enumeration type.
After receiving focus ComboBoxAdv doesn't allow user to leave the control if value is not selected also it hangs if another control received focus.

1 Reply

VS Vallarasu S Syncfusion Team June 7, 2010 12:05 PM UTC

Hi Alex,

Thanks for your ineterest in Syncfusion products,

By default ComboBoxAdv does not allow to you leave the control when AllowNewText is set to 'False', and none of the item is selected,
You can add an exception to accept the DBNull.Value by overriding the ComboBoxAdv OnLeave method as follows and,

protected override void OnLeave(EventArgs e)
{
if(base.Text != DBNull.Value.ToString())
base.OnLeave(e);
}

This will allow you to leave the control when the field is empty.
Refer the sample at the following link which demonstrates the above,

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=ComboBoxAdvAllowNull1336351736.zip

Please let me know if this helps,

Regards
Vallarasu S.

Loader.
Live Chat Icon For mobile
Up arrow icon