Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Disable to Done button on Column chooser Dialog pragmatically on conditions(how to manipulate Column chooser )
Disable to Done button on Column chooser Dialog pragmatically on conditions [message #1463709] Thu, 06 November 2014 21:16 Go to next message
Rahamat Kahakashan is currently offline Rahamat KahakashanFriend
Messages: 2
Registered: November 2014
Junior Member
I have 20 columns in my column chooser that can be displayed and all 20 can be non displayed. This will give the user the option to select all 20 and push them to available section and they will not display on the viewer.
There is no way to retrieve the column choosing capability once all 20 columns are hidden. So need a way to disable to done button in the Column Chooser when all the columns are pushed to available side
Re: Disable to Done button on Column chooser Dialog pragmatically on conditions [message #1464424 is a reply to message #1463709] Fri, 07 November 2014 14:42 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
In the current implementation this is not possible. You could implement your own dialog and register some listener that disables the button in case the tree with the selected columns is empty.

As it seems nobody uses the grid but only column header + body compositions and it seems to be a typical use case for all the users in the world to hide all columns of a table, I will look for a general solution to that issue.
Re: Disable to Done button on Column chooser Dialog pragmatically on conditions [message #1464740 is a reply to message #1464424] Fri, 07 November 2014 20:56 Go to previous messageGo to next message
Rahamat Kahakashan is currently offline Rahamat KahakashanFriend
Messages: 2
Registered: November 2014
Junior Member
Thanks for the response Dirk,
Appreciate your advice.
Re: Disable to Done button on Column chooser Dialog pragmatically on conditions [message #1473104 is a reply to message #1464740] Fri, 14 November 2014 10:39 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
For your information, the "hide all columns" issue is tracked by the following tickets:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=451486
https://bugs.eclipse.org/bugs/show_bug.cgi?id=451490

There are contributions for those tickets that will add the ability to check if hiding all columns is possible. The dialog OK button will be disabled if trying to hide all columns. Also the header menu items will use the check to avoid hiding all columns via menu.

After I was able to verify the contribution and hopefully merged it into core, this topic should be done.
Previous Topic:Changing the default Excel filename on export
Next Topic:Export to Excel with UTF-8 encoding
Goto Forum:
  


Current Time: Thu Mar 28 21:41:43 GMT 2024

Powered by FUDForum. Page generated in 0.01461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top