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

TreeViewAdv Tri-state Checkbox

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

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team August 22, 2016 08:54 AM UTC

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;
Please find the sample that demonstrates the same:


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.

Vijayalakshmi V.R.

TT tttmack August 22, 2016 04:18 PM UTC

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

VR Vijayalakshmi Roopkumar Syncfusion Team August 23, 2016 06:04 AM UTC

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. 
Vijayalakshmi V.R.  

Live Chat Icon For mobile
Up arrow icon