Run the following sample. Double click on the first record. This should expand Charles. Now click on the button "CLick". You'll notice the records change to "root". Question is, is this expected behaviour? When re-fetching, am I supposed to be hiding that expanded column? It looks like a criteria is added without me specifying it.
I used the datasource from this sampleisomorphic/system/reference/SmartClient_Explorer.html#_Trees_Data.binding_Load.on.Demand
Code:
isc.ColumnTree.create({ ID: "employeeColTree", width: "100%", height: 205, dataSource: "employees", autoFetchData:true, nodeIcon:"icons/16/person.png", folderIcon:"icons/16/person.png", showOpenIcons:false, showDropIcons:false, closedIconSuffix:"", showHeaders: true, showNodeCount: true }); //employeeColTree.fetchData(); //var mycriteria = {ReportsTo: ["1", "4"]}; isc.IButton.create({ title: "Click", top: 300, click: function() { employeeColTree.fetchData(); employeeColTree.markForRedraw(); } });
Comment