Hi Team, Is there a way to clear the selected items programmatically. I tr

Hi Team,

Is there a way to clear the selected items programmatically.
I tried with twinColGrid.setValue(null) which throws exception.
Tried with twinColGrid.clear() which doesn’t throw any exception, but doesn’t clear the elements.
I’ve also tried with twinColGrid.setValue(new HashSet<>()) which again, throws no exception, but doesn’t clear

Thanks is advance!

Hi Mohan!

We’ve created [an issue]
(https://github.com/FlowingCode/TwinColGridAddon/issues/16) regarding this in our addon’s Github repository page, we’ll let you know when it’s corrected, but thanks for the feedback!

Regards

Hello, the “value” of a TwinColGrid is the set of right-selected items, thus setValue isn’t expected to modify the lists in any way. In order to clear the lists one has to call setItems(Collections.emptyList()))