Replies: 4 comments 2 replies
|
Hi, tree.updateColumns({ calculateCols: false });
tree.setModified("any", { removeMarkup: true });but I think it would be better if a simple |
0 replies
|
I can confirm it works, thanks Martin! |
1 reply
|
btw, please let us use issues for this kind of topics, unless it is about general feature or architecture discussions. |
1 reply
|
Closing as resolved |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Martin,
I've been trying to programatically add new columns. (the greater idea is allowing dragging elements from one tree grid to another one and adding new columns to the target grid if needed)
What is the best way of achieving this?
I tried adding new a element to tree.columns[] and calling
tree.setModified("any");
This does not work as the respective colElem is not found when rendering nodes.
(Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'colElem.style') in _render_status())
Demo with a button to add new column: https://codepen.io/vozvik/pen/bGKaQGV
Thanks a lot!
Regards
Viktor
All reactions