Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Conflict in RowHideShowLayer and ColumnHideShowLayer (Conflict in RowHideShowLayer and ColumnHideShowLayer )
Conflict in RowHideShowLayer and ColumnHideShowLayer [message #1061004] Wed, 29 May 2013 09:37 Go to next message
SD Khan is currently offline SD Khan
Messages: 63
Registered: May 2013
Member
Hi All,

I want's to use RowHideShowLayer given in the org.eclipse.nebula.widgets.nattable.core , so i have created the instance of RowHideShowLayer and then created an object of SelectionLayer and passed the RowHideShowLayer object into it's constructor then used some of the functions of row hiding, it worked but there were two problems.

1. Rows were hided but index and positions were not updated.
2. ColumnHideShowLayer stopped working because it works when it becomes the underlying layer of SelectionLayer but as described above i also wants to use RowHideShowLayer.

So now how i can use both the layers that is ColumnHideShowLayer and RowHideShowLayer at the same time? as both wants to become the underlying layer of SelectionLayer to work properly.

Why the indexes and row positions are not updating when using row hiding functions, in my opinion most probably event list is not updated and may be RowReorderLayer is not working properly also, how to get it work ?

Any help will be appreciated,

Thanks,
Safdar Khan
Re: Conflict in RowHideShowLayer and ColumnHideShowLayer [message #1061069 is a reply to message #1061004] Wed, 29 May 2013 14:46 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1214
Registered: July 2012
Senior Member
If you use GlazedLists you should consider using GlazedListsRowHideShowLayer because of issues regarding GlazedLists handling in combination with hiding rows
Re: Conflict in RowHideShowLayer and ColumnHideShowLayer [message #1061111 is a reply to message #1061069] Thu, 30 May 2013 01:33 Go to previous messageGo to next message
SD Khan is currently offline SD Khan
Messages: 63
Registered: May 2013
Member
Okay thanks, but i am still curious about that underlying layer problem ?
Re: Conflict in RowHideShowLayer and ColumnHideShowLayer [message #1061112 is a reply to message #1061111] Thu, 30 May 2013 01:52 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1214
Registered: July 2012
Senior Member
There is no such constraint that the hide show layers need to be directly the underlying layer of SelectionLayer. The SelectionLayer needs to be on top of both for the index transformation of the selection, that's all. And the transformation is done on handling the corresponding events.

I don't understand why you are thinking there is such a constraint.
Re: Conflict in RowHideShowLayer and ColumnHideShowLayer [message #1061136 is a reply to message #1061112] Thu, 30 May 2013 04:06 Go to previous message
SD Khan is currently offline SD Khan
Messages: 63
Registered: May 2013
Member
okay, i got it, i have made selection layer on the top and got it work.

Thanks,
Safdar Khan
Previous Topic:Installing the 1.0 release
Next Topic:NatTable 1.0.0 released
Goto Forum:
  


Current Time: Sat Jul 26 03:12:57 EDT 2014

Powered by FUDForum. Page generated in 0.01751 seconds