Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Nov 2008
    Posts
    5
    Vote Rating
    0
    keyade is on a distinguished road

      0  

    Default [GXT 2.2.4] Bug on GridCellRenderer for TreeGrid

    [GXT 2.2.4] Bug on GridCellRenderer for TreeGrid


    Hi,
    I have some issues on widget renderer when I try to scroll with the mouse wheel.
    Some widgets are not rerendering correctly.

    here is a simple source code producing the bug :

    Code:
    import java.util.Arrays;
    import com.extjs.gxt.samples.resources.client.Resources;
    import com.extjs.gxt.samples.resources.client.TestData;
    import com.extjs.gxt.samples.resources.client.model.Folder;
    import com.extjs.gxt.ui.client.data.ModelData;
    import com.extjs.gxt.ui.client.store.ListStore;
    import com.extjs.gxt.ui.client.store.TreeStore;
    import com.extjs.gxt.ui.client.widget.ContentPanel;
    import com.extjs.gxt.ui.client.widget.LayoutContainer;
    import com.extjs.gxt.ui.client.widget.form.CheckBox;
    import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
    import com.extjs.gxt.ui.client.widget.grid.ColumnData;
    import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
    import com.extjs.gxt.ui.client.widget.grid.Grid;
    import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer;
    import com.extjs.gxt.ui.client.widget.layout.FitLayout;
    import com.extjs.gxt.ui.client.widget.layout.FlowLayout;
    import com.extjs.gxt.ui.client.widget.treegrid.TreeGrid;
    import com.extjs.gxt.ui.client.widget.treegrid.TreeGridCellRenderer;
    import com.google.gwt.user.client.Element;
    
    public class TreeGridExample extends LayoutContainer {
    
        @Override
        protected void onRender( Element parent, int index ) {
            super.onRender( parent, index );
            setLayout( new FlowLayout( 10 ) );
    
            Folder model = TestData.getTreeModel();
    
            TreeStore<ModelData> store = new TreeStore<ModelData>();
            for ( int i = 0; i < 10; i++ ) {
                store.add( model.getChildren(), true );
            }
    
            ColumnConfig cBox = new ColumnConfig( "cBox", "cBox", 20 );
            cBox.setRenderer( new GridCellRenderer<ModelData>() {
    
                @Override
                public Object render( ModelData model, String property, ColumnData config, int rowIndex, int colIndex,
                        ListStore<ModelData> store, Grid<ModelData> grid ) {
                    final CheckBox checkBox = new CheckBox();
                    checkBox.setValue( rowIndex % 2 == 1 );
                    return checkBox;
                }
    
            } );
            ColumnConfig name = new ColumnConfig( "name", "Name", 100 );
            name.setRenderer( new TreeGridCellRenderer<ModelData>() );
            ColumnModel cm = new ColumnModel( Arrays.asList( cBox, name ) );
    
            ContentPanel cp = new ContentPanel();
            cp.setLayout( new FitLayout() );
            cp.setSize( 600, 300 );
    
            final TreeGrid<ModelData> tree = new TreeGrid<ModelData>( store, cm );
            tree.getStyle().setLeafIcon( Resources.ICONS.music() );
            tree.setAutoExpandColumn( "name" );
    
            cp.add( tree );
    
            add( cp );
        }
    
    }
    The result optained :

    screen_bug_treegrid.png

    Thank you

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    5
    Vote Rating
    0
    delrius is on a distinguished road

      0  

    Default


    I am having the same problems with Widget Renderer TreeGrid. Like in example (you can see the attachement) I created custom renderer for my grid. But after some operations (i.e. open all leaves and start collapsing-expanding them) some widgets get lost and not displayed.
    Attached Images

  3. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    Alexandru82 is on a distinguished road

      0  

    Default


    Same problem on ie (works fine on firefox)!!! to gwt developpers is passed almost 2 months and no answear!

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    It is on the list and will be worked on for one of the upcomming releases.

  5. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    4
    Vote Rating
    0
    Alexandru82 is on a distinguished road

      0  

    Default


    Thank you very much!

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Posts
    5
    Vote Rating
    0
    delrius is on a distinguished road

      0  

    Default


    This code seemed to fix the issue
    Code:
    grid.getTreeView().setBufferEnabled(false);
    No un-displayed widgets in grid, but I doubt it's the good solution in performance aspect.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar