Results 1 to 6 of 6

Thread: Grouped Grid that also paginates

  1. #1
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    25

    Default Grouped Grid that also paginates

    Is it possible to have a grouped grid that also paginates? Based on the examples in the showcase, the paging grid invokes the ListLoader in a Attach listener whereas the grouped grid invokes the ListLoader when the groupedBy property is set. Different loadConfigs are used by those loaders as well - is it possible to reconcile them?

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    Yes that is possible.

  3. #3
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    25

    Default

    So what do I have to do differently? Is there an example?

    Currently when I give the paging grid a GroupedView, it invokes the loader with a BaseGroupingLoadConfig and it does not contain paging info (offset and limit).

  4. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    You will need to add a BasePagingGroupLoadConfig etc. But in the end, this is possible

  5. #5
    Ext GWT Premium Member
    Join Date
    Apr 2010
    Posts
    25

    Default

    Yes I can certainly create a load config that captures all the data I need - the more important question is which component should be responsible for creating, populating and invoking the loader with this new BasePagingGroupLoadConfig?

    Should I:
    1. Extend GroupingStore, give it a reference of the grid, and overwrite the groupBy() method to create BasePagingGroupLoadConfig and populate it the way I need, or
    2. Somehow try to prevent GroupingStore from executing the loader and do this stuff in the Attach Listener of the paging grid?

    Which approach is "more feasible"? Or is there a better approach?

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    3) Have a GroupLoader that can handle this

    You can extend BasePagingLoader for this for example.

Similar Threads

  1. Grouping Grid not grouped
    By sanjshah in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 Oct 2009, 3:02 AM
  2. Store object is not loaded completely after paginates the paging comboBox
    By tdteti_ in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 14 Oct 2009, 12:45 AM
  3. Is there a way to tell if a grid is grouped?
    By anselmtmcclain in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 10 Feb 2009, 9:42 PM
  4. XML Paging grid no "paginates"
    By fjulbe in forum Ext GWT: Help & Discussion (1.x)
    Replies: 11
    Last Post: 24 Oct 2008, 5:52 AM
  5. Grouped grid with XML
    By blow in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 31 May 2008, 11:57 AM

Posting Permissions

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