Hybrid View

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    8
    Vote Rating
    0
    planadecu is on a distinguished road

      0  

    Exclamation Reload data in GXT grid freezes

    Reload data in GXT grid freezes


    Based on the GXT showcase example 'Paging BeanModel Grid' I try to reload the grid when I have done a modifiaction to my data source. I defined the loader like that:


    Code:
    final BasePagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy, new BeanModelReader());
    loader.setRemoteSort(true);
    The data loads correctly.
    When I do:


    Code:
    loader.load();
    My paging toolbar just freezes and goes disabled, the grid freezes too and displays what appears to be a loading rectangle.


    I tried to add some events to force a double reload without luck:


    Code:
    grid.addListener(Events.Attach, new Listener<GridEvent<ModelData>>() {
        public void handleEvent(GridEvent<ModelData> be) {
        loader.load(); 
    
    
        }
    });
    I tried to use the reconfigure(store,cm) option as well and same result.
    To me there is a bug on the grid controller:


    Code details:
    Code:
    private final BasePagingLoader<PagingLoadResult<ModelData>> loader;
    private Grid<ModelData> grid;
    [...]
    
    
    public ListUsersView(RpcProxy<PagingLoadResult<UserTableEntryBean>> proxy) {
            // Create loader
            loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy, new BeanModelReader());
            loader.setRemoteSort(true);
    
    
            // Create store
            store = new ListStore<ModelData>(loader);
    
    
            FlowLayout layout = new FlowLayout();
            layout.setMargins(new Margins(3, 0, 0, 0));
            this.setLayout(layout);
    
    
            final PagingToolBar toolBar = new PagingToolBar(50);
            toolBar.bind(loader);
    
    
            List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
            columns.add(new ColumnConfig(UserTableEntryBean.Fields.username.name(), "Username", 100));
            columns.add(new ColumnConfig(UserTableEntryBean.Fields.email.name(), "E-mail", 200));
            ColumnConfig date = new ColumnConfig(UserTableEntryBean.Fields.creationDate.name(), "Creation date", 100);
            date.setDateTimeFormat(DateTimeFormat.getFormat("dd/MM/y"));
            columns.add(date);
    
    
            ColumnModel cm = new ColumnModel(columns);
    
    
            grid = new Grid<ModelData>(store, cm);
    
    
            grid.setLoadMask(true);
            grid.setBorders(true);
            grid.setAutoExpandColumn(UserTableEntryBean.Fields.creationDate.name());
    
    
            [...]
    }
    
    
    public boolean refreshTable() {
            return loader.load();
    }
    Any help?

    Copy on: http://stackoverflow.com/questions/8...t-grid-freezes


    Thanks, Jordi.



  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    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


    Can you please provide a fully working testcase implementing EntryPoint that shows your problem?

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi