It's always normal in Firefox, but it's often abnormal in IE, Please refer to attachment for more details.
The code be used to fetch column as below:
Any suggestions or points will be appreciated
Thanks
The code be used to fetch column as below:
Code:
private TreeGrid constructTreeGrid() { final TreeDataSource treeDataSource = treeDataSource.getInstance(); final TreeGrid treeGrid = new TreeGrid(); TreeServiceAsync service = GWT.create(TreeService.class); service.fetchTreeColumns(new AsyncCallback<String[]>() { public void onFailure(Throwable arg0) { // TODO Auto-generated method stub } public void onSuccess(String[] columns) { setDataSourceFields(treeDataSource, columns); treeGrid.setDataSource(treeDataSource); setHeaderColumns(treeGrid, columns); //treeGrid.setFields(...) treeGrid.invalidateCache(); treeGrid.fetchData(); treeGrid.redraw(); } } }); return treeGrid; }
Thanks
Comment