Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to programatically expand nodes in ColumnTree

    Hi, I have a ComboBoxItem which works as a search box where its picklist is, for now, items of a ColumnTree. On selecting one of the picklist's items which returns a ListGridRecord, I want to expand that specific node in the ColumnTree programmatically. Please note that I have also set ColumnTree.setShowMultipleColumns(false);

    I also used the following code snippet, but no luck so far:

    Code:
    ListGridRecord record = searchBox.getSelectedRecord();
    
    TreeNode node = tree.find("Name", record.getAttribute("Search"));
    tree.openFolders(tree.getParents(node));
    I would appreciate any help :)
    Last edited by pedram.khoshdani@gmail.com; 1 Mar 2019, 05:49.

    #2
    Isomorphic Is this a bug, that ColumnTree doesn't expand programmatically with the following code?

    Code:
    TreeNode node = columnTree.getData().find("EmployeeId", 293);
    columnTree.getData().openFolders(columnTree.getData().getParents(node));
    columnTree.selectRecord(node);
    Last edited by pedram.khoshdani@gmail.com; 4 Mar 2019, 11:09.

    Comment

    Working...
    X