Results 1 to 2 of 2

Thread: Infinite loop with LiveGridView

  1. #1
    Ext User
    Join Date
    Dec 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default Infinite loop with LiveGridView

    Hi,

    i have a strange problem with new LiveGrid functionality in 2.1.0.

    First RPC query asks with "offset 0 limit 200" settings, then i see query loop with "offset -199 limit 200" settings (there is one record in database). Grid is never rendered, only visible action is RPC query loop. Grid is functional with classic PagingToolbar class.

    Code looks like:

    Code:
    BeanModelReader reader = new BeanModelReader();
    
    final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(
            proxy, reader);
    
    ListStore<BeanModel> store = new ListStore<BeanModel>(loader);
    
    grid = new Grid<BeanModel>(store, cm);
    
    LiveGridViewDebug liveView = new LiveGridViewDebug();
    liveView.setRowHeight(32); 
    
    grid.setView(liveView);
    
    panel = new ContentPanel();
    panel.setHeading(heading);
    panel.setLayout(new FitLayout());
    panel.add(grid);
    panel.setSize(800, 500);
    
    add(panel);
    Does anyone encounter this behaviour? Any hints?

    Regards,
    Pavel Arnost

  2. #2
    Ext User
    Join Date
    Dec 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default resources folder

    Hi,

    I forgot to update "resources" folder in upgrade process from 2.0.1 to 2.1. Now it works.

    Pavel

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •