# Column Reordering

The [Angular TreeList](https://www.telerik.com/kendo-angular-ui/components/treelist) enables you to reorder its columns in two ways: by dragging the header cells or by implementing [manual reordering](https://www.telerik.com/kendo-angular-ui/components/treelist/columns/reordering#manual-reordering) on user interaction.

To enable column reordering, set the [`reorderable`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#reorderable) property to `true`. By default, the column-reordering feature is disabled.

The following example demonstrates how to reorder columns by dragging the header cells.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/treelist/columns/reordering/source.txt)

## Manual Reordering

You can enable users to reorder a TreeList column on a button click or on another user interaction. To achieve this, use the [`reorderColumn`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent#reordercolumn) method. The method can reorder only visible columns.

To reorder a column, provide the following arguments to the method:

* The column that needs to be reordered.
* The new column index.
* A [`ColumnReorderConfig`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/columnreorderconfig) object that configures the reordering behavior—set its [`before`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/columnreorderconfig#before) property to indicate whether the reordered column will be positioned before or after the destination index.

```ts
public onClick(treelist: TreeListComponent, column: ColumnBase) {
    treelist.reorderColumn(column, 0, { before: true });
}
```

The following example demonstrates how to reorder the last column on a button click and make it first.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/treelist/columns/reordering/manual/source.txt)

## Suggested Links

* [`ColumnComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/columncomponent)
* [API Reference of the `TreeListComponent`](https://www.telerik.com/kendo-angular-ui/components/treelist/api/treelistcomponent)
* [API Index of the TreeList](https://www.telerik.com/kendo-angular-ui/components/treelist/api)
