Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1401
How to hide particular nodes from WinTree?
posted

Hi,

I am using Binding List concept to create Node List and assigning this Node List to the DataSource of the WinTree as mentioned in the Post http://forums.infragistics.com/forums/t/5222.aspx

I am facing following issue:

1.     How can I hide the particular nodes from WinTree before assigning to the DataSource of the WinTree?

2.     Leaf nodes showing ‘+’ even though it doesn’t have Children.

3.      If I create WinTree object dynamically at runtime and bind the Node List to DataSource of it, ‘ExpandAll’ doesn’t work.

Thanks in advance.

Kumar

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    1. You can't. UltraTreeNode exposes a Visible property, but you can't get a reference to a node that will represent a list object from the data source until the data source has been assigned. Once it has, the InitializeDataNode event will fire for each node; you can set the Visible property to false for the node therein.

    2. To optimize performance by deferring the loading of child rows until they are requested, the ShowExpansionIndicator property resolves to 'CheckOnExpand', which causes them to appear for all root nodes regardless of whether they have children. You can switch this off by setting UltraTree.Override.ShowExpansionIndicator to 'CheckOnDisplay' instead, but note that by doing so you might be introducing a performance hit when bound to relatively large datasets.

    3. I could not reproduce this behavior with a simple test. If possible post a code sample or test project that demonstrates the problem and we can take a look.

Children