Hi,
I have been testing some multilink treegrid features, but it seems there are some bugs in the mulitlink functionality.
Connectors are not rendered correctly. In the screenshot you can see that the connector is not drawn correctly for Cheryl Pearson under Gene Porter.
In addition clicking on the + in front of Olivier Doucet under Gene Porter does not expand the node. Instead it checks for the same x positions as Olivier Doucet under Charles Madigen. This seems to be caused by the fact that you use the node instead of the nodeLocator, which causes it to lookup the wrong value.
I am using SmartClient Version: v12.1p_2020-08-16/Enterprise Development Only (built 2020-08-16), but this can easily be replicated by extending the Parent Linking example
Just to be sure, since we had a misunderstanding last time: Multilink is documented and as such I assume this is supported?
I have been testing some multilink treegrid features, but it seems there are some bugs in the mulitlink functionality.
Connectors are not rendered correctly. In the screenshot you can see that the connector is not drawn correctly for Cheryl Pearson under Gene Porter.
In addition clicking on the + in front of Olivier Doucet under Gene Porter does not expand the node. Instead it checks for the same x positions as Olivier Doucet under Charles Madigen. This seems to be caused by the fact that you use the node instead of the nodeLocator, which causes it to lookup the wrong value.
I am using SmartClient Version: v12.1p_2020-08-16/Enterprise Development Only (built 2020-08-16), but this can easily be replicated by extending the Parent Linking example
Code:
isc.TreeGrid.create({ ID: "employeeTree", multiLinkTree: true, data: isc.Tree.create({ modelType: "parent", nameProperty: "Name", idField: "EmployeeId", multiLinkTree: true, parentIdField: "reportsTo", data: [ {EmployeeId:"4", Name:"Charles Madigen"}, {EmployeeId:"188", Name:"Rogine Leger"}, {EmployeeId:"189", Name:"Gene Porter"}, {EmployeeId:"265", Name:"Olivier Doucet"}, {EmployeeId:"264", Name:"Cheryl Pearson"}, {EmployeeId:"301", Name:"Bla1"}, {EmployeeId:"302", Name:"Bla2"} ], linkData: [ {EmployeeId:"188", reportsTo:"4"}, {EmployeeId:"189", reportsTo:"4"}, {EmployeeId:"265", reportsTo:"4"}, {EmployeeId:"264", reportsTo:"4"}, {EmployeeId:"265", reportsTo:"189"}, {EmployeeId:"264", reportsTo:"189"}, {EmployeeId:"301", reportsTo:"265"}, {EmployeeId:"302", reportsTo:"265"} ] }), fields: [ {name: "Name"} ], // customize appearance width: 500, height: 400, nodeIcon:"icons/16/person.png", folderIcon:"icons/16/person.png", showOpenIcons:false, showDropIcons:false, showSelectedIcons:true, showConnectors: true, closedIconSuffix:"" }); //employeeTree.getData().openAll();
Comment