Skip to main content



      Home
Home » Eclipse Projects » Nebula » Column Name Can be Rename In NatTable(The Column Name in the natTable can be renamed)
Column Name Can be Rename In NatTable [message #1702313] Tue, 21 July 2015 09:45 Go to next message
Eclipse UserFriend
Hello,

Is it possible to rename the column names of the nat table at runtime.
if it is possible how.

It would be better if suggested with some example.


Thanks you

Regards
Shashi
Re: Column Name Can be Rename In NatTable [message #1702316 is a reply to message #1702313] Tue, 21 July 2015 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Please ask questions related to NatTable in the NatTable forum.

https://www.eclipse.org/forums/index.php/f/240/

Regarding your question, you need to be more precise. Should a user be able to change the column name at runtime or do you want to change it programmatically. For the programmatical way, simply use an IDataProvider for the column header that supports that. For the user, you need to register a column header menu with a renameColumnMenuItemProvider.
Re: Column Name Can be Rename In NatTable [message #1702319 is a reply to message #1702316] Tue, 21 July 2015 10:03 Go to previous message
Eclipse UserFriend
Oh, and there are lots of examples in the NatTable examples application, e.g. Tutorial Examples -> Data -> DynamicColumnExample adds the HeaderMenuConfiguration, which by default has the menu item configured for opening the column rename dialog.

natTable.addConfiguration(new HeaderMenuConfiguration(natTable));
Previous Topic:Tab key navigation in the grid.
Next Topic:Nebula grid widget - change header height
Goto Forum:
  


Current Time: Fri May 02 11:21:41 EDT 2025

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

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

Back to the top