|
|
|
|
Re: Freeze and Unfreeze column [message #1560322 is a reply to message #1560008] |
Mon, 12 January 2015 14:33 |
ambuj bhargava Messages: 19 Registered: July 2014 |
Junior Member |
|
|
Thnaks for the prompt reply.
My question is:
In the sample examples the freeze and the unfreeze action is called using ctrl+shift+f and ctrl+shift +u respectively.
I have tried to put this on the Menu also that we get by mouse right click on the column.BUT it does not work properly.
The action that is being called on that is:public static <T> IMenuItemProvider withFreezeColumnItemProvider(
final EventList<?> eventList, final IDataProvider bodyDataProvider,
final Composite parent) {
return new IMenuItemProvider() {
@Override
public void addMenuItem(final NatTable natTable,
final Menu popUpMenu) {
freezeMenuItem = new MenuItem(popUpMenu, SWT.NONE);
freezeMenuItem.setText("Freeze Columns\tCtrl+Shift+F");
// freezeMenuItem.setAccelerator(accelerator);
freezeMenuItem.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(Event arg0) {
NatEventData obj = (NatEventData) popUpMenu.getData();
final int colIndex = natTable.getColumnIndexByPosition(obj .getColumnPosition());
natTable.doCommand(new FreezeColumnCommand(natTable
.getLayer(), colIndex));
freezeMenuItem.setEnabled(false);
}
});
}
};
When it freezes the columns there is issue with the alignment
but at the same time when ctrl+shift+f/u is being called it works correctly.
Basically the columns that get freezes comes but the horizontal scroll bar disappears,
Regards
Ambuj
[Updated on: Mon, 12 January 2015 14:35] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds