V.i.K.i
V.i.K.i

Reputation: 189

Ext JS 6 - sortchange event for gridcolumn not fired

I want to capture the sorting change happening in the grid column and update a boolean in the grid. I tried the following code in this Sencha Fiddle.

But when I click on the column headers for sorting, the contents are sorted, but the sortchange event listener is not triggered.

Upvotes: 0

Views: 1144

Answers (1)

BhandariS
BhandariS

Reputation: 604

You must put the sortchange in the grid's listener instead of the column's listener

listener: {
                    sortchange : function()
                    {
                       your code here
                    }
                }

Upvotes: 1

Related Questions