Maniac_1979
Maniac_1979

Reputation: 979

Set colunn order of datagrid programmatically

I was wondering if you can set the column order programmatically in the kendo-grid for angular2?
I see in the documentation that there is a property columnIndex.

Thank you,

Upvotes: 0

Views: 194

Answers (1)

knikolov
knikolov

Reputation: 1800

The columns will be displayed in the order that they are set in the configuration. What you can do is pass an array of columns, loop them with *ngFor. And then reorder that array, so the changes will be reflected in the UI.

Upvotes: 1

Related Questions