Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Hiding all columns without a rowheader(Hidden columns)
Hiding all columns without a rowheader [message #1463573] Thu, 06 November 2014 18:00 Go to next message
daniel wilkerson is currently offline daniel wilkersonFriend
Messages: 2
Registered: November 2014
Junior Member
Hello,

Our project has a requirement to not include the row header or corner in our nattable implementation. However, this presents an issue if the end user hides all columns they no longer have a layer to right-click and show all columns. Could someone give us an idea about how to work around this issue.

Thank you,
Dan
Re: Hiding all columns without a rowheader [message #1463660 is a reply to message #1463573] Thu, 06 November 2014 20:08 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Either add a context menu to the NatTable Canvas or add some button or anything similar that allows to recover
Re: Hiding all columns without a rowheader [message #1463661 is a reply to message #1463660] Thu, 06 November 2014 20:09 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Oh, or implement a custom hide command handler that doesn't allow to hide all. For example always one column stays visible
Re: Hiding all columns without a rowheader [message #1464493 is a reply to message #1463661] Fri, 07 November 2014 16:19 Go to previous messageGo to next message
daniel wilkerson is currently offline daniel wilkersonFriend
Messages: 2
Registered: November 2014
Junior Member
Thank you for the response Dirk. Was thinking along those lines with the command handler.
Re: Hiding all columns without a rowheader [message #1473106 is a reply to message #1464493] Fri, 14 November 2014 10:40 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:Extending NatTable
Next Topic:Changing the default Excel filename on export
Goto Forum:
  


Current Time: Thu Apr 18 10:34:55 GMT 2024

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

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

Back to the top