Announcement

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

    Slow rendering of Grids with no datasource auto fetch data

    Hi Isomorphic;
    My SmartGWT version is: 'v11.0p_2017-02-11/PowerEdition Deployment (built 2017-02-11)'.
    My application is using SmartGWT + Spring + Hibernate

    We have implemented a list grid where grid is supplied a preExisting list of data using: 'grid.setData(recordList)'.

    As the recordList is large , Grid rendering becomes very slow.

    As the settings: grid.setDataFetchMode(FetchMode.PAGED);
    grid.setDataPageSize(1);

    don't work with grids not fetching data automatically from dataSource, Could you please suggest if there is any other setting which can help my grid to render data fast?




    #2
    Just create a clientOnly DataSource for your grid and apply your recordList to it via setCacheData().

    Comment


      #3
      Note however that the grid does not normally become slower just because grid.data has actual records rather than just being a partial cache of records. Your results suggest that you have degraded normal performance in some way, for example, by setting showAllRecords:true or by writing logic of your own that traverses the entire dataset.

      Comment

      Working...
      X