Hello, I’ve been searching for a while in documentations / google about Pivot Table rows Sorting. I found a thread in Disqus - Webix : Pivot Table made a year ago and still without answer. Still in development ?
Hello,
For initial rows sorting you can use $sort scheme:
scheme:{
$sort: {
by: "name",
dir: "asc"
}
},
Hi,
Can I sort by two fields?
You can sort with any custom sorting rule by API ( that includes sorting by two columns ), there is no default UI to initiate sorting by two columns, though.
It possible to override default single-column sorting behavior, that while only one column is marked as sorting source, it will always include other column in sorting ( user clickes on on any column, components sort by that columna and by date column for example )
If necessary I can provide a snippet for above scenario.
Hi,
Can you please provide a snippet for above scenario.
Thanks,
Please check the next snippet, sorting work by all columns. When values are the same they are ordered by the first column (so grid is sorted by selected and first columns )