Announcement

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

    #16
    I´m experimenting the same issue with a very easy implementation of the listGrid the difference is that I am trying to load 1000 records...

    The code is very simple:

    theGrid.setFields(fields);

    theGrid.setDataSource(theDataDS);
    theGrid.setAlternateRecordStyles(true);
    gridLayout.addMember(theGrid);
    theGrid.fetchData();

    Comment


      #17
      Dear hromero,

      A simple answer to your problem:

      Add this line, before fetchData,

      Code:
      theGrid.setShowAllRecords(true);
      An elaborate answer:
      - it depends on whether you are running in development mode, or web server hosted mode.
      - Check your environemnt for the above and see, if this is really the issue.

      There is a lot of performance difference, when running in dev mode vs hosted mode, and it really counts.

      Ideally, you would be setting the "setShowAllRecords" options, if the no. of records is within an acceptable range i.e. not huge and unpredictable.

      regards,
      RV

      Comment


        #18
        Do NOT setShowAllRecords(true).

        There is no scrolling performance problem with the grid in its default configuration. The FAQ lists various invalid ways of testing and common misconfigurations that could create a performance problem.

        The one affecting the previous poster is #1 in the FAQ - testing in GWT hosted/development mode, which is many times slower than your real, deployed application. This may be your problem as well.

        Do not, in any case, use setShowAllRecords(true) because it will create a performance problem for larger sets of records and does not solve any performance problem. The grid's default configuration already renders all records for smaller datasets (drawAllMaxCells).

        In general do not tweak anything about grid rendering until you really, really know what you're doing. The cases in which you might want to tweak the defaults are all unusual corner cases which come up rarely.

        Comment

        Working...
        X