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

check-uncheck syncfussion CheckBoxAdv control

Thread ID:





28667 May 6,2005 10:26 AM UTC May 11,2005 08:08 AM UTC WinForms 4
Tags: Tools
Administrator [Syncfusion]
Asked On May 6, 2005 10:26 AM UTC

Hi, I have a problem using the syncfussion CheckBoxAdv control. In a form with several validation rules (for example error if the field is empty) there''s a CheckBoxAdv control that doesn''t have to accept changes while an error is unresolved (so, all the validations are OK). I programmed that in the CheckBoxAdv Click event, however doesn''t work. I tried with a windows standar checkbox (programming the Click event too) and in that case if there''s an unresolved validation, the checkbox doesn''t change the value (checked-unchecked) that''s correct but the CheckBoxAdv allows the check-uncheck. You can prove it on the example attached. Do you know if this is a syncfussion bug? or How can I do to make the CheckBoxAdv works? Thank you Abel WindowsApplication1_8332.zip

Administrator [Syncfusion]
Replied On May 6, 2005 03:27 PM UTC

Hi Abel, Please try setting both the Click and DoubleClick events to use the CheckBoxAdv1_Click method. This should prevent the CheckState from changing while the TextBox is empty. Regards, Gregory Austin Syncfusion Inc.

Administrator [Syncfusion]
Replied On May 10, 2005 07:40 AM UTC

Hi Gregory, thank you very much... but it is not working correctly: if you do click on the checkbox''s text it works, but if you do click on checkbox does not work... I am using version syncfussion WindowsApplication1_6112.zip

Administrator [Syncfusion]
Replied On May 10, 2005 09:43 PM UTC

Hi Abel, Thanks for the update. Try handling the CheckBoxAdv''s MouseUp event instead as shown below : private void checkBoxAdv1_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e) { if( errorProvider1.GetError( this.textBox1 ).Trim() != "" ) { this.checkBoxAdv1.BoolValue = !this.checkBoxAdv1.BoolValue; } } Please refer to the test sample attached here that illustrates this and let me know if this works for you. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On May 11, 2005 08:08 AM UTC

Ok, thank you very much. Now it works fine...


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

This page will automatically be redirected to the 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