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

How to not show the Plus/Minus if the node has no children.

Thread ID:





106805 Jan 27,2013 12:56 AM UTC Jan 31,2013 08:54 AM UTC WinForms 3
Tags: Tools
Henry Drews
Asked On January 27, 2013 12:56 AM UTC

I'm building an application which uses a TreeViewAdv control, but not all nodes are expanded at the beginning.   I'm using LoadOnDemand.   Everything works OK except that the node has no children, it still displays the Plus sign.   Now the Plus sign goes away when clicked, but how to I get to not show up at all.

Paul Anderson S [Syncfusion]
Replied On January 28, 2013 09:33 AM UTC

Hi Henry,

Thanks for your interest in Syncfusion products.

In TreeViewAdv by setting LoadOnDemand property to true, the plus and minus of all the nodes will be visible in the beginning. Now on selecting a node the BeforeExpand event of the nodes and subnodes are triggered and the TreeNode will display or hide the plus or minus based on whether or not the children are added. This is a normal behavior of TreeViewAdv control.

Please have the documentation from the below link.

[Documentation link]

Please let us know if you have any concerns.

Paul Anderson S

Henry Drews
Replied On January 31, 2013 03:40 AM UTC

I think I understand.   Because I'm loading on demand the plus has to be shown otherwise there would be no way to expand that node to get any children.   It is only afterwards that you know if there are children or not.   Thanks.

Paul Anderson S [Syncfusion]
Replied On January 31, 2013 08:54 AM UTC

Hi Henry ,

Thanks for the update.

We are glad to help you on this.

Please let us know if you need any other details.

Regards ,
Paul Anderson S


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