mayan
mayan

Reputation: 157

extjs-how to find the grid column width

Is there a way to find the grid column width?

Upvotes: 1

Views: 2806

Answers (1)

Lionel Chan
Lionel Chan

Reputation: 8069

(If you are using 3.3.1)

Assuming var grid = your grid;, you can use grid.getColumnModel().getColumnWidth(n) to get the width of a column, and use the event widthchange if you need to listen to the width changes.

Check the documentation, of class ColumnModel, and its method getColumnWidth and event widthchange.

Upvotes: 3

Related Questions