To me it seems plausible that if the user deletes a column one might want to remove the corresponding column definition. But one doesn’t have to design your app that way – maybe some apps do want their columns to be “sticky”. That’s not for us to decide.
But it seems clear that you don’t want that column information to remain, so it seems clear to me that you do want to call removeColumnDefinition,
My goal is just smoothly add/remove columns and rows. if it is a editable table, must have those function I think.
I am not “don’t want that column information to remain”, just not to delete it, it not work correctly, OK any way, so we use it again to try.
when deleting the order is, should delete column from the itemArray first or removeColumnDefinition at the first?
and other question is there a best way to refresh the selectionAdornment? when add column the resize marker dose not appear you know.
back to the original problem, because delete column always tricky, I got a idea to always delete last column, of course before delete move all data once. in the first glance it seems work, i did’t test all.
Thank you, walter, and my progress is, that, always delete the last
columns or rows is good for me. because, in this way we not need to change column number or row number so the table not behave tricky. this way is not so efficient, but i think in the gojs table no one to edit thousand of lines.
right now i can add delete and resize row col smoothly. :) even not well tested yet. you know I am a good tester :)
After adding some delete the coldef or rowdef call after applyIncrementalJson then, now worked. not efficient just somehow worked. so I will close this thread, waiting v2.1.49 ,and, thank you Walter for long session.