datatable sorting

Hi,
I can’t find a way to dont show the sorting arrow when I sort a datatable column.

I saw the markSorting method but with that if I click 2 times on the same column only the first time the sorting works, then it does not sort that column until i click on another column.

This is a simple snippet of the problem:
https://snippet.webix.com/k9fnikfz

Probably I am missing something on how to use the markSorting method for my case, can you help me please?

you don’t need to use markSorting in that case.
it is done by default
https://snippet.webix.com/zm6bil6t
if you have different scenario please share it.

also you need to pass required parameters to method
https://docs.webix.com/api__ui.datatable_marksorting.html
https://snippet.webix.com/dtg9pqew

Yes but what I need is to hide the sorting arrow that is displayed when i click on the column to sort it.
That’s why I was trying to use the markSorting method.
In the documentation you posted the last row says:
“The method can be called with no parameters to remove all arrows from the datatable headers.”
This is what I want, and it works, but only when I click on the column for the first time, then the sorting does not work anymore.

yes, you can use it without parameters.
but this is used if sorting is done programmatically and when required.

to hide the arrow you can override defined style

<style>
  .webix_ss_sort_asc, .webix_ss_sort_desc{
      visibility:hidden;
  }
</style>

https://snippet.webix.com/2dt5ty0u

This can be a solution, thank you, but if I want to hide the arrow only on one column?
For example, let’s say that in the snippet I want to hide the sorting arrow only on the “Year” column, is it possible to do that?

you can set class to header (if config is static) or use this hack for auto config
https://snippet.webix.com/zd84btxw
https://docs.webix.com/datatable__columns_configuration.html#styling

This is perfect! Thanks!