Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2009
    Location
    Cypress, California
    Posts
    153
    Vote Rating
    16
    dougbieber is on a distinguished road

      0  

    Default [CLOSED] defaultSortDirection does not support 'DESC' sort order in a Store

    [CLOSED] defaultSortDirection does not support 'DESC' sort order in a Store


    Hi, I have an autoLoad Store in which I have a "sorters" attribute and a "defaultSortDirection" attribute. If I set "defaultSortDirection" to "DESC" it still sorts as "ASC". Obviously since this Store is remote via proxy I can't provide a fully reproducible case in this post. However, if you have any autoLoad Stores you could probably easily reproduce this with a Ext.grid.Panel and an autoLoad Store.

    Code:
        incentiveStore: Ext.create('Ext.data.Store', {
            model: 'admin.model.IncentiveModel',
            proxy: Ext.create('yds.data.AjaxProxy', {
                url: getDataRequestURL('getIncentivePrograms'),
                reader: {
                    type: 'array',
                    root: 'data'
                }
            }),
            sorters: 'programText',
            defaultSortDirection: 'DESC',
            autoLoad: true
        })
    The column that I'm sorting is defined like this:

    Code:
                    {
                        header: "<b>Description</b>",
                        sortable: true, 
                        dataIndex: "programText",
                        width: 5
                    }

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2009
    Location
    Cypress, California
    Posts
    153
    Vote Rating
    16
    dougbieber is on a distinguished road

      0  

    Default Answer

    Answer


    Arrrrggh. This is not a bug. I was presuming Ext.util.Sortable when in fact the mixin that's most likely being used is Ext.util.Sorter. This works:

    Code:
        incentiveStore: Ext.create('Ext.data.Store', {
            model: 'admin.model.IncentiveModel',
            proxy: Ext.create('yds.data.AjaxProxy', {
                url: getDataRequestURL('getIncentivePrograms'),
                reader: {
                    type: 'array',
                    root: 'data'
                }
            }),
            sorters: [{
                direction: 'DESC',
                property: 'programText'
            }],
            autoLoad: true
        })