Announcement

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

    The column name of TreeGrid display differently in IE and FireFox

    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:
    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;
    }
    Any suggestions or points will be appreciated

    Thanks
    Attached Files

    #2
    it's really a challenge

    Help!

    Comment


      #3
      Please post a minimal standalone testcase that demonstrates the issue.

      Comment


        #4
        I don't know how to do that, it is a component of our product, be used to display hierarchical entity

        Comment


          #5
          you could check the attachments to see what I am talking about

          Comment


            #6
            Tree has already been rendered before the RPC which be used to fetch column finishing, that's the reason why title is missing.

            when I add a alert() function to block for a while and waiting for the response of RPC, this issue won't exist.

            but I don't need to pop-up a window.

            Any other solutions?

            Comment


              #7
              Sorry, unless you post a standalone testcase you’re not going to get much help. No one knows what your code looks like.

              Have you tried using one of the standard skins? Perhaps there is a CSS issue with your skin customization?

              Sanjiv

              Comment


                #8
                Thanks for your quick response.

                Actually I solved this issue just now by trying repeatedly

                Code:
                public void onModuleLoad() {
                    TreeGrid treeGrid = constructTreeGrid(); //RPC to fetch columns 
                    RootPanel root = RootPanel.get("treePickerDivId");
                    HLayout layout = new HLayout();		
                    treeGrid.draw();  // draw again to solve this issue.
                    layout.addMember(treeGrid);
                    root.add(layout);
                }
                Anyway, thank you.

                Comment

                Working...
                X