Skip to content

markSorting

marks the sorted column with arrow (asc/desc) in the header

function markSorting(
// optional, the column ID
column_id?: string,
// optional, the sorting direction: "asc" or "desc"
direction?: string,
// optional, instructs to preserve previous sorting marker
preserve?: boolean
): void
dgrid = webix.grid({...})
dgrid.markSorting("title", "asc");

also check the next samples:

  • The method is designed for placing correct arrows in headers if the data have been sorted programmatically.
dgrid.sort("title", "asc");
dgrid.markSorting("title", "asc");
  • The method can be called with no parameters to remove all arrows from the datagrid headers.

Articles

API