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.
Unfortunately, activation email could not send to your email. Please try again.

TreeViewAdv Tri-state Checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

125499 Aug 19,2016 04:15 PM Aug 23,2016 02:04 AM Windows Forms 3
loading
Tags: TreeViewAdv
tttmack
Asked On August 19, 2016 04:15 PM

How can I get a tri-state checkbox in a TreeViewAdv control?

I would like the solid square to appear instead of a checkmark for the indeterminate value but I can't find a property to do this in either TreeViewAdv or TreeNodeAdv


Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 22, 2016 04:54 AM

Hi Taylour,

Thank you for using Syncfusion Products,

You can customize the InteractiveCheckBox appearance by using its properties named IntermediateCheckColor and IntermediateCheckBoxBackGround properties in TreeNodeAdv. 
  
Code snippet:C#:
treeNode.IntermediateCheckColor = Color.Black;
treeNode.IntermediateCheckBoxBackGround = Brushes.Black;
 
Screenshot: 
  
   
Please find the sample that demonstrates the same:

Sample:TreeViewAdv_Tristate

Please check our sample and let us know whether it meets your requirement. If not kindly brief about requirement along with screenshot , so that it would helpful for us to proceed further on this.


Regards,
Vijayalakshmi V.R.

tttmack
Replied On August 22, 2016 12:18 PM

Thank you Vijayalakshmi.

That was what I was looking for. Unfortunately, there seems to be a bug when doing this with when the TreeViewAdv has Metro style applied to it (changing the IntermediateCheckColor property has no effect). Note that it works fine with other styles such as Default, Office2007 and Office2010.

I have created a ticket for this in directtrac: https://www.syncfusion.com/support/directtrac/incidents/162544

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 23, 2016 02:04 AM

Hi Taylour,

We were able to reproduce the reported issue and have logged a defect report regarding this. Please followup the reported incident to track the status of this defect which has been created under your account. 
Regards,
Vijayalakshmi V.R.  


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.

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.

;