Skip to content

TreeView.Nodes.ClearAll() - Problem version 1.5.4.0 #1694

Description

@itg-assistant

MARCELO BLANK asked 2018-07-14 16:29:21 UTC

Hi.

Before version 1.5.4.0 I didn´t had a problem load treeView.

I first clear all nodes them load then.

Now, after update to version 1.5.4.0, , if I clear the previous nodes I need to Expand all after load it, or I see nothing in TV.

Is it a bug ?

Previous - works fine:

tvSectors.Nodes.Clear();

boSectors s = new boSectors();
boSubsectors ss = new boSubsectors();

s.GetSectors();

foreach (boSectors b in s.GetEnumerable())
{

TreeNode n = new TreeNode();

n.Text = b.SectorShort;
n.Tag = "ST" + b.SectorId;

}

tvSectors.Nodes.Add(n);

Version 1.5.4.0 - not working previous code

tvSectors.Nodes.Clear();

boSectors s = new boSectors();
boSubsectors ss = new boSubsectors();

s.GetSectors();

foreach (boSectors b in s.GetEnumerable())
{

TreeNode n = new TreeNode();

n.Text = b.SectorShort;
n.Tag = "ST" + b.SectorId;

}

tvSectors.Nodes.Add(n);

tvSectors.ExpandAll() <<<---- have to put this code to works

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions