Ticket T207125
Visible to All Users

TreeListNode Visible State

created 10 years ago

Hi,
I generate a TreeList programmatically and try to hide a TreeListNode after bound to a datasource.
Code Snipe:

dynTreeList.Dock = System.Windows.Forms.DockStyle.Fill;
                    dynTreeList.Location = new System.Drawing.Point(2, 21);
                    dynTreeList.Name =  String.Format("treeList{0}", SubDS.pGetLinkObjectsByMasterObject[0]["Sammlung"].ToString());
                    dynTreeList.Size = new System.Drawing.Size(515, 602);
                    dynTreeList.TabIndex = 0;
                    dynTreeList.DataSource = SubDS.pGetLinkObjectsByMasterObject;
                    dynTreeList.OptionsBehavior.DragNodes = true;
                    dynTreeList.ParentFieldName = "relID";

dockManager1.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float, dynPanel);

foreach (DataRow item in tSMDataSet.dtLinkObjects.Select(String.Format("Sammlung='{0}'",SubDS.pGetLinkObjectsByMasterObject[0]["Sammlung"].ToString())))
                    {

dynTreeList.FindNodeByFieldValue("Value", item["Value"]).Visible = false;

}

The TreeListNode is found, but setting the state to visible=false dose not work. If I change the value of the node, the change is applyed.

Thanks for your help.
Best regards
Gregor

Comments (1)
Andrew Ser (DevExpress Support) 10 years ago

    Hello,
    I tried to replicate this behavior in a sample project, but was unsuccessful. Attached is a project that illustrates my attempts to reproduce your scenario and the issue you are experiencing. Please try to modify this project so that it illustrates the problematic behavior and send it to us. This information will allow us to find an appropriate solution faster.
    I hope to receive your response soon.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.