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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeViewAdv Tri-state Checkbox

Thread ID:

Created:

Updated:

Platform:

Replies:

125499 Aug 19,2016 08:15 PM UTC Aug 23,2016 06:04 AM UTC WinForms 3
loading
Tags: TreeViewAdv
tttmack
Asked On August 19, 2016 08:15 PM UTC

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 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;
 
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 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

Vijayalakshmi Roopkumar [Syncfusion]
Replied On 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. 
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.

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

;