- TIP! Sort the first and third columns to see how the sort is locked. Override this by using the multisort key (shift) while clicking on the header.
- NOTE! This option was part of the original plugin, but it was broken.
+ NOTE!
+
-
+
- This option was part of the original plugin, but it was broken. +
- Sort the first, third and fifth columns to see how the sort is locked. +
- Columns can be locked using any of the following methods, in order of priority (v2.3+):
+
-
+
- jQuery data
data-lockedorder="asc"
. (equivalent todata-locked-order="asc"
).
+ - metadata
class="{ lockedOrder: 'asc'}"
. This requires the metadata plugin.
+ - headers option
headers : { 0 : { lockedOrder: 'asc' } }
.
+ - header class name
class="lockedOrder-asc"
.
+
+ - jQuery data
Demo
First Name | Last Name | -Age | +Age | Total | -Discount | +Discount | Date |
---|---|---|---|---|---|---|---|
First Name | Last Name | -Age | +Age | Total | -Discount | +Discount | Date |