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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ComboBoxAdv hangs.

Thread ID:

Created:

Updated:

Platform:

Replies:

94850 Jun 4,2010 06:32 PM UTC Jun 7,2010 12:05 PM UTC WinForms 1
loading
Tags: Tools
Alex Feldman
Asked On June 4, 2010 06:32 PM UTC

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.

Vallarasu S [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;