Posted 11 May 2020, 3:12 pm EST
I have a FlexGrid that allows users to pin single columns or column ranges (using AllowPinning.Both). The columns in the grid can vary depending on certain user parameters. I have noticed that if a user pins a couple columns and then the parameters change, thus resetting or changing the columns, the pinning gets messed up.
What I’d like to do is query the columns before changes are made to get an array of pinned columns, and then re-apply those pins after the columns have been set. But from what I have gathered from the documentation there is no way to of getting or setting pinned values on individual columns. So that raises two questions:
- Is there a way of determining which columns are currently pinned? I’d love a getIsPinned method on the Column object.
- Is there a way of setting a column as pinned (other than using “frozenColumns” which sets a range starting at zero)? Again, I’d love a setPinned() method on the Column object for things like this.
Thank you.