You found a bug! We've classified it as EXTJSIV-8544 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    88
    Vote Rating
    3
    whirling dervish is on a distinguished road

      0  

    Default [4.1.3] Grid sort not working when dataIndex === 0

    [4.1.3] Grid sort not working when dataIndex === 0


    If dataIndex is set to 0, this conditional will never be true,

    Code:
            if (!me.sorting && oldSortState !== state && me.getSortParam()) {
    Line 753 in grid/Column.js

    The default implementation of me.getSortParam() will return the dataIndex.

    So in my case I am trying to sort a column that is passed to the backend as column 0, and the sort is never fired due to this bug.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


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