clear datatable sorting

is there any way to clear applied sorters in datatable?

Hello,
Please check the sample: Code Snippet

If you are looking for a way to unsort the datatable - then there isn’t any straight way to do it.

But you can sort your datatable by some index column (see the “rank” column in the following snippet) and remove sorting markers from the columns: https://snippet.webix.com/u8r8m1s2

Thanks Helga

Thanks Helga for your reply…

Server side response gives one default sort, so if we do clear sort all sorts should get clear.

So, there no way to unsort the datatable in this way?

You can some hidden parameter ( id for example ) and sort by it, when you want to unsort the dataset.

Please check the next snippet, third click on column will unsort data

https://snippet.webix.com/fp1d5zbq