-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column Moving using API #6334
Comments
Hey @amitohale, thank you for the feature suggestion, while we review the Feature Request and plan it for the upcoming sprints you may use this temporary solution. The sample demonstrates how to change the columns order based on column Code snippet:
|
Thanks @zdrawku, this works for me. |
The feature-request is added to our Queue part of the Master Backlog, you will be updated accordingly for any change of its state. |
There has been no recent activity and this issue has been marked inactive. |
As @hanastasov pointed out while we were discussing the FR, we can expose API method (column-based) that will change the column index and reset the columnist collection (similar to the moveColumn API implementation). list.splice(toIndex, 0, ...list.splice(fromIndex, 1));
this.columnList.reset(list); I am marking this FR for the next milestone |
Ability to reorder columns using API
Current grid allow columns reordering via standard drag/drop mouse or touch gestures. It does not allow us to reorder based on saved preferences (somewhere.. say localstorage).
Support must be added to set column position in a grid.
setColumnIndex(column: IgxColumnComponent, index: number)
: Set column position to indexThe text was updated successfully, but these errors were encountered: