Our blazing fast Grid component built with pure JavaScript


Post by mats »

Try this:
grid.store.sort({ field : yourColumn.field, fn : yourColumn.sortable})

Post 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. :-/

Post 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?

Pavlo Miklashevych
Sr. Frontend Developer


Post by eguardiola »

Hi,

Finally the way it works like i need is in this way:
grid.store.sort({ field : yourColumn.field, fn : myCustomFunction}, false)
Thanks!

Post Reply