SmartClient Version: SNAPSHOT_v9.1d_2013-12-17/PowerEdition Deployment (built 2013-12-17)
IE8
I have a TreeGrid which does periodical refreshes using the underlying dynamic DataSource. I saw the posting on the Wiki about periodical refreshing using a ListGrid and DataSource, so I adopted that approach to my TreeGrid. No more ResultTree ID clashes in the devmode log, great.
My TreeGrid.DataArrived handler no longer is triggered using a DataSource.fetch(criteria, DSCallback). Also my SortNormalizer used in my TreeGrid is no longer being applied.
Is there something I need to do to get the TreeGrid DataArrived handler and SortNormalizer working again?
IE8
I have a TreeGrid which does periodical refreshes using the underlying dynamic DataSource. I saw the posting on the Wiki about periodical refreshing using a ListGrid and DataSource, so I adopted that approach to my TreeGrid. No more ResultTree ID clashes in the devmode log, great.
My TreeGrid.DataArrived handler no longer is triggered using a DataSource.fetch(criteria, DSCallback). Also my SortNormalizer used in my TreeGrid is no longer being applied.
Code:
DataSource treeGridDataSource = treeGrid.getDataSource(); treeGridDataSource.invalidateCache(); treeGridDataSource.fetchData(criteria, new DSCallback() { @Override public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) { Tree newTree = new Tree(); newTree.setRootValue(0); newTree.setModelType(TreeModelType.PARENT); newTree.setIdField("id"); newTree.setParentIdField("pid"); Record [] recordList = dsResponse.getData(); TreeNode[] nodeList = new TreeNode[recordList.length]; for(int m=0; m<recordList.length; m++){ nodeList[m] = new TreeNode(recordList[m].getJsObj()); } newTree.setData(nodeList); treeGrid.setData(newTree); } });
Comment