Vec
Vec

Reputation: 47

How to dynamically change columns position in a grid in extjs?

I have a grid with 3 columns ( name | lastname | age ) in that order. What I need is to change the position of the columns when clicking a button to ( age | lastname | name). Is there any way of doing this ? I did it by creating 2 grids and change them each other when the button is clicked but I was wondering if there is any way of doing the same thing with only one grid.

Upvotes: 0

Views: 1219

Answers (1)

aallord
aallord

Reputation: 307

Here is a link how to dynamically set column order using a button. The example should help you in your quest to fill your needs.

Upvotes: 2

Related Questions