Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:45 Go to next message
Shashi D M is currently offline Shashi D MFriend
Messages: 25
Registered: August 2011
Junior Member
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 13:57 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
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 14:03 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2614
Registered: July 2012
Senior Member
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: Mon Sep 24 11:07:33 GMT 2018

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

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

Back to the top