Skip to content

8. Extensions

Emrah KONDUR edited this page Jan 25, 2023 · 1 revision

ColReorder:

ColReorder adds the ability for the end user to be able to reorder columns in a DataTable through a click-and-drag operation. This can be useful when presenting data in a table, letting the user move columns that they wish to compare next to each other for easier comparison.

.ColReorder(true)

Or, configure it; Reference:

  • Initial enablement state of ColReorder.
.ColReorder(x => x.Enable(false))
  • Disallow x columns from reordering (counting from the left).
.ColReorder(x => x.FixedColumnsLeft(1))
  • Disallow x columns from reordering (counting from the right).
.ColReorder(x => x.FixedColumnsRight(1))
  • Set a default order for the columns in the table.
.ColReorder(x => x.Order(5,4,3,2,1,0))
  • Enable/Disable live reordering of columns during a drag.
.ColReorder(x => x.RealTime(false))
Clone this wiki locally