How can i make the first column fixed in TreeTableView?

Answered

I have a TreeTableView, and I add the TableColumnModelListener to handle column moving events.

But I want the first column can not be moved, is there any idea to do this ?

0
3 comments

Hi,

Why do you need to do this? From the UX perspective, if users prefer changing the column order, it should be allowed for all columns.

0

Thank you for reply!

For a TreeTable, the node in the first column is shown in tree structure. It seems stranged when it is moved.

0

If it seems strange when it is moved, then I wouldn't worry users will do it.

I suggest investing your time in implementing functionalities crucial to your plugin. Blocking the possibility of moving the column doesn't seem like a useful feature. I would handle it only if I'm sure this causes actual problem for users. See the general advice here:
https://plugins.jetbrains.com/docs/intellij/plugin-user-experience.html#general-advice

0

Please sign in to leave a comment.