PDA

View Full Version : Grid->ColumnConfig->setMenuDisabled: issue



animtor404
24 Nov 2014, 1:37 AM
I have grid generalized by my dto. I have 2 columns config and I setMenuDisabled(true) on second one.
Then menu disappears from second column as it was meant.
But icon showing direction of sorting disappears too. And when I click sort on second column - indeed it is sorted but icon showing direction is show on first column. It is weird.

animtor404
24 Nov 2014, 1:56 AM
It seems something wrong was with my code.
I used PropertyAccess generator instead of manual writing code for Grid ColumnConfig and now it`s working fine.

Andreas Samjeske
25 Nov 2014, 1:33 AM
... And when I click sort on second column - indeed it is sorted but icon showing direction is show on first column. It is weird.
I had the same issue. Reason: getPath() of ValueProvider of the columns delivered same string.

animtor404
25 Nov 2014, 1:58 AM
It is possible.