Re: click Sort icon of columna header programmaticaly
Posted: Tue Mar 10, 2020 5:08 pm
by mats
Try this:
grid.store.sort({ field : yourColumn.field, fn : yourColumn.sortable})
Re: click Sort icon of column header programmatically
Posted: Wed Mar 11, 2020 1:58 pm
by eguardiola
Thanks. That way apparently is doing the same as when i click the sort icon on the header. But when i call store.filterBy() the sorting status is lost. The sorting status remains when the sort is enabled by clicking the sort icon. :-/
Re: click Sort icon of column header programmatically
Posted: Wed Mar 11, 2020 5:24 pm
by pmiklashevich
I cannot reproduce the issue. filterBy doesn't clear sorting for me. Could you please provide detailed steps how to reproduce the problem with one of our examples (for example in console), or provide a runnable testcase that we can check?
Re: click Sort icon of column header programmatically
Posted: Thu Mar 26, 2020 10:47 am
by eguardiola
Hi,
Finally the way it works like i need is in this way:
grid.store.sort({ field : yourColumn.field, fn : myCustomFunction}, false)