You found a bug! We've classified it as TOUCH-3863 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    13
    hschaefer123 will become famous soon enough

      0  

    Default Issues combining local grouping with remote sorting

    Issues combining local grouping with remote sorting


    Touch SDK 2.1.0

    Trying to use localGrouping (only needing grouper/groupFn)with remoteSorting, the generated sortParam will always contain 2 sort params.The first one is the grouper remaing empty,the second one is the used remote sort param as expected.It seems, that the locally used group param is also used as first remote sort param, but grouping is not enabled to be remote!

    I am currently not available to use remote sorting in combination with a local grouping function!

    Code:
        config: {
            autoLoad: true,
            model: 'OtfhApp.model.Order',
            pageSize: 10,
            remoteSort: true,
            storeId: 'OrderStore',
            proxy: {
                type: 'rest',
                url: 'data/orders.xml'
            },
            sorters: {
                property: 'ERDAT'
            },
            grouper: {
                groupFn: function(record) {
                    return Ext.util.Format.date(record.get('ERDAT'), 'l, d.m.Y');
                }
            }
        }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    871
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1