From 19ca8a7876e16661f3b1afbac3793137cd1e5b90 Mon Sep 17 00:00:00 2001 From: Emrah KONDUR Date: Wed, 25 Jan 2023 17:18:38 +0300 Subject: [PATCH] Update README.md --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 8ddd68d..f5700e2 100644 --- a/README.md +++ b/README.md @@ -383,3 +383,29 @@ function createdRow(row, data, dataIndex, cells){ ```csharp .Callbacks(x => x.CreatedRow("createdRow").InitComplete("initComplete")) ``` +### 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. +```csharp +.ColReorder(true) +``` +Or, configure it; [Reference:](https://datatables.net/reference/option/#colreorder) +* Initial enablement state of ColReorder. +```csharp +.ColReorder(x => x.Enable(false)) +``` +* Disallow x columns from reordering (counting from the left). +```csharp +.ColReorder(x => x.FixedColumnsLeft(1)) +``` +* Disallow x columns from reordering (counting from the right). +```csharp +.ColReorder(x => x.FixedColumnsRight(1)) +``` +* Set a default order for the columns in the table. +```csharp +.ColReorder(x => x.Order(5,4,3,2,1,0)) +``` +* Enable/Disable live reordering of columns during a drag. +```csharp +.ColReorder(x => x.RealTime(false)) +```