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