Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    87
    Vote Rating
    3
    esag_dk is on a distinguished road

      0  

    Default Grid: addAll() + SortInfo = mess

    Grid: addAll() + SortInfo = mess


    Version(s) of Ext GWT
    Ext GWT 3.0 Release Candidate 2

    Browser versions and OS (and desktop environment, if applicable)
    IE 9, Windows 7

    Virtual Machine
    No

    Description
    A grid with added StoreSortInfo behaves very strange when using the addAll() method. It took me a while to narrow down the reason, but just try out the code below. Adding all items using the addAll() method sets the store correctly, but the gridview gets broken. It only shows some of the store data and the selection doesn't really work (selected item isn't equal with the selectionmodel's selected item).
    Workaround 1 = grid.getView().refresh(false) after inserting the items;
    Workaround 2 = add all items separately using getStore().add()
    Workaround 3 = removing the SortInfo, but that's not really a solution

    Run mode
    Development Mode

    Test case

    Code:
    Code:
     final MyJoinCellGrid grid = new MyJoinCellGrid();
    
        public void onModuleLoad()
        {
            VerticalLayoutContainer vlc = new VerticalLayoutContainer();
            vlc.setPixelSize(800, 250);
    
            TextButton putValuesButton = new TextButton("Insert Values");
            TextButton refreshButton = new TextButton("Refresh");
    
            VerticalLayoutContainer buttonBar = new VerticalLayoutContainer();
            buttonBar.add(putValuesButton, new VerticalLayoutData(1, -1));
            buttonBar.add(refreshButton, new VerticalLayoutData(1, -1));
            vlc.add(buttonBar, new VerticalLayoutData(1, -1));
    
            putValuesButton.addSelectHandler(new SelectHandler()
            {
    
                @Override
                public void onSelect(SelectEvent event)
                {
                    grid.getStore().clear();
    
                    JoinGridTestDTO dto1 = new JoinGridTestDTO(11, 12, new ArrayList<String>());
                    JoinGridTestDTO dto2 = new JoinGridTestDTO(21, 13, new ArrayList<String>());
                    JoinGridTestDTO dto3 = new JoinGridTestDTO(31, 14, new ArrayList<String>());
                    JoinGridTestDTO dto4 = new JoinGridTestDTO(41, 15, new ArrayList<String>());
                    JoinGridTestDTO dto5 = new JoinGridTestDTO(51, 16, new ArrayList<String>());
                    JoinGridTestDTO dto6 = new JoinGridTestDTO(61, 17, new ArrayList<String>());
                    JoinGridTestDTO dto7 = new JoinGridTestDTO(71, 18, new ArrayList<String>());
                    JoinGridTestDTO dto8 = new JoinGridTestDTO(81, 19, new ArrayList<String>());
                    JoinGridTestDTO dto9 = new JoinGridTestDTO(91, 10, new ArrayList<String>());
    
                    Map<String, JoinGridTestDTO> dtos = new HashMap<String, MyJoinCellGrid.JoinGridTestDTO>();
                    dtos.put("muh", dto1);
                    dtos.put("n", dto2);
                    dtos.put("1", dto3);
                    dtos.put("fds", dto4);
                    dtos.put("fs", dto5);
                    dtos.put("fdss", dto6);
                    dtos.put("gfdfhg", dto7);
                    dtos.put("gds", dto8);
                    dtos.put("23", dto9);
    
                    grid.getStore().clear();
                    grid.getStore().addAll(dtos.values());
                }
            });
    
            refreshButton.addSelectHandler(new SelectHandler()
            {
    
                @Override
                public void onSelect(SelectEvent event)
                {
                    grid.getView().refresh(false);
                }
    
            });
    
            vlc.add(grid, new VerticalLayoutData(1, 1));
            RootPanel.get().add(vlc);
        }
    Grid:
    Code:
    public class MyJoinCellGrid extends Grid<JoinGridTestDTO>
    {
    
        private static ColumnConfig column1;
        private static ColumnConfig column2;
    
        static TestProvider prov = GWT.create(TestProvider.class);
    
        public MyJoinCellGrid()
        {
            super(new ListStore<JoinGridTestDTO>(prov.oid()), new ColumnModel(getColumnConfigList()));
            getStore().addSortInfo(new StoreSortInfo<JoinGridTestDTO>(prov.att1(), SortDir.ASC));
        }
    
        private static List<ColumnConfig> getColumnConfigList()
        {
            List<ColumnConfig> columnConfigList = new ArrayList<ColumnConfig>();
            column1 = new ColumnConfig(prov.att1(), 250, "Column 1");
            column2 = new ColumnConfig(prov.strings(), 250, "Column 2");
    
            columnConfigList.add(column1);
            columnConfigList.add(column2);
    
            return columnConfigList;
        }
    
        static class JoinGridTestDTO
        {
            private int oid;
            private int att1;
            private List<String> strings;
    
            public JoinGridTestDTO(int oid, int att1, List<String> strings)
            {
                super();
                this.att1 = att1;
                this.oid = oid;
                this.strings = strings;
            }
    
            public int getAtt1()
            {
                return att1;
            }
    
            public void setAtt1(int att1)
            {
                this.att1 = att1;
            }
    
            public int getOid()
            {
                return oid;
            }
    
            public void setOid(int oid)
            {
                this.oid = oid;
            }
    
            public List<String> getStrings()
            {
                return strings;
            }
    
            public void setStrings(List<String> strings)
            {
                this.strings = strings;
            }
    
        }
    
        interface TestProvider extends PropertyAccess<JoinGridTestDTO>
        {
    
            ModelKeyProvider<JoinGridTestDTO> oid();
    
            ValueProvider<JoinGridTestDTO, Integer> att1();
    
            ValueProvider<JoinGridTestDTO, List<String>> strings();
        }
    }

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    10
    Vote Rating
    0
    Tony Stuart is on a distinguished road

      0  

    Default


    Thank you for bringing the matter to our attention and providing a test case.

    We recently encountered this issue in our testing. It is fixed in SVN as part of issue EXTGWT-1826. The fix will be available in the next release.

  3. #3
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    The fix for this bug has been included in the public release of Sencha GXT 3.0.0. Please try your test case again with this release. Although we're confident that this issue has been resolved, please reply here (or start a new bug thread linking to this one) if you continue to notice issues.

Thread Participants: 2