Announcement

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

    ListGrid GroupBy Issue

    Be sure your post includes:

    1. SmartGWTPower 2.4, IE 8
    I have 20,000 records displayed in the listgrid with 5 columns. I am using groupby to group the records.
    Initially group by does not work and I came to know that I have to set
    ListGrid.setGroupByMaxRecords(50000);

    I wonder why we need to set the maximum. What happens if the records or more than 20,000. Again group by will not work.

    Irrspective to the group by Max records, if Iset the value as stated above, group by wont work in IE or Safari.

    1) Can we do with out setting the max for group by
    2) how to avoid the script error in IE/Safari.

    Do you have any solution ?

    #2
    To show a tree-style display for that many records, use a TreeGrid with load on demand so that all records are not loaded in advance. While Firefox, Safari or Chrome will generally handle that many records, IE8 and earlier definitely will not (we don't know what issue you had with Safari and you provided no details, but there's no point looking into it since IE8 will never work this way).

    Comment


      #3
      IT does not matter i provided the details. you can create an scenario like this.
      The gourp by helps me to show 2 or 4 records in a group. for that I need a List Grid. The samples in the showcase is hust a few records. The issues seems to be the setGroupByMaxRecords API.

      1) 50,000 records with 10 columns in a Listgrid.

      Result: Irrespective of Browsers you CANNOT do group by (default), because it is more than 1000 records. If you mention max groupby records to 50,000 then it will work in Firefox, Chrome. But not in IE (where most of our users using).

      The Question Why we need to set the max group where I dont know how many is going to come in the listgrid. I cannot keep changing the program when the records hit the max ceiling.
      Last edited by krishnafse2009; 19 Jul 2011, 12:58.

      Comment


        #4
        Not sure what's unclear - the maximum is in place because some browsers cannot handle the data volume (as you've already noted). If you enable the filterEditor or other filtering controls, the user can reduce the data volume and use grouping. If you need a grouping interface that handles an arbitrarily large number of records, use a TreeGrid, as previously explained.

        Comment

        Working...
        X