Hi
I am programmatically adding a tree of nodes to a TreeViewComboBox (Wise J out of box control)
I have noticed that the statement
((TreeView)this.tvcmbServiceList.DropDownControl).CollapseAll();
Does not collapse the nodes.
Also you can manually collapse / expand nodes in the Treeview dropdown unless you have previously selected them.
A previously selected node cannot be collapsed.
Are these Bugs?
Thanks
Hi Ewan,
#2472 is fixed in our latest Wisej development build (2.2.21).
Best regards
Frank
Hi Ewan,
I wasn’t able to replicate the CollapseAll() issue with the latest version of Wisej. Which version of Wisej are you using?
Could you please attach a small sample and / or video of the issue?
Best regards,
Levie
Hi Levie
I am using the latest version 2.2.18.0
I am trying to implement the ability to type into the combo to search the tree.
When I programmatically set the selected node. you cannot collapse the node even if you try and do it within the drop down.
See highlighted line.
private void tvcmbServiceList_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 27)
{
//Cancelled();
}
else if (e.KeyChar == 8 && strSearch.Length > 0)
{
strSearch = strSearch.Substring(0, strSearch.Length – 1);
tvcmbServiceList.Text = strSearch;
}
else if (e.KeyChar == 13)
{
((TreeView)this.tvcmbServiceList.DropDownControl).CollapseAll();
TreeNode Node = SearchNode(strSearch, tvcmbServiceList.Nodes[0], true);
((TreeView)this.tvcmbServiceList.DropDownControl).SelectedNode = Node;
strSearch = “”;
}
else
{
strSearch = strSearch + e.KeyChar;
tvcmbServiceList.Text = strSearch;
}
}
Thanks
Ewan
When you select a node it will automatically expand all the parent nodes.
Hi Luca
From my tests CollapseNode() just collapses the top level node, as if you re-expand the top level node, the previously expanded nodes are still expanded.
Once you programmatically select a node that is several levels down, you can no longer collapse that branch even if you select a different node.
If you manually select a node you can collapse each node in the chain.
See video
https://1drv.ms/u/s!AnsMoCQkVNQtsW8QoiD1VKeXMKc2?e=y826u6
Thanks
Ewan
Hi Ewan,
this issue is logged as #2471 and will be fixed in our next release.
Best regards
Frank
Hi Frank
Collapse is fixed (except when nodes are locked see below)
However programmatically selecting a node is not.
The tree auto expands to the node, but the nodes leading to the selected node remain locked as expanded, even if another node is selected.
(If a node is manually selected you can open the drop down and manually collapse all nodes leading to selected node, collapse also works correctly)
Thanks
Hi Ewan,
thanks, logged as #2472.
A fix will be included in the next Wisej build.
Best regards
Frank
Please login first to submit.