Custom column sorting

Tags: #<Tag:0x00007efc6d2b2710>

Hi, I have a question about the beforeColumnSort hook. How can I determine which column header is clicked to be sorted in the hook? There are only 2 parameters (currentSortConfig, destinationSortConfigs) in which I don’t find any info for the clicked column.

Hey @slavozar.vargulev

The beforeColumnSort hook in its 2nd parameter returns and object that refers to the column id.
If you pass colHeaders via array you can refer to the position in the array.

demo https://jsfiddle.net/dc9Ley8o/

Is that the expected result?

Hi, I actually recieve an empty array as the second argument. Nevertheless, I got a workaround working now. Thanks for the response!

Thank you for the update. Glad to hear that.