Jide GroupTable

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Jide GroupTable

Postby robertho21 » Wed Jun 01, 2011 11:12 am

We are already a client using your product, I'm testing GroupTable but I can't find how to show the table header in order to set visible "Drag columns here to group".

I have already set:

_table.getTableHeader().setEnabled(true);
_table.getTableHeader().setVisible(true);

Could you tell me what am I missing ??
robertho21
 
Posts: 10
Joined: Fri Oct 29, 2010 4:38 pm

Re: Jide GroupTable

Postby JIDE Support » Wed Jun 01, 2011 11:30 am

Please give the following code a try.
Code: Select all
        GroupTableHeader header = new GroupTableHeader(_table);
        _table.setTableHeader(header);
        header.setGroupHeaderEnabled(true);

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Jide GroupTable

Postby robertho21 » Wed Jun 01, 2011 12:28 pm

Hi, thanks for you reply, but our JIDE Library doesn't have GroupTableHeader class, could you tell me the version of the JIDE GRIDS, that I need to use.

Thanks.

Robertho.
robertho21
 
Posts: 10
Joined: Fri Oct 29, 2010 4:38 pm

Re: Jide GroupTable

Postby JIDE Support » Wed Jun 01, 2011 1:03 pm

It was introduced since 2.11.0. Please give the latest release a try.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Jide GroupTable

Postby robertho21 » Wed Jun 01, 2011 2:29 pm

Thanks, I have updated the jar and now I can see the class.

I'm following your example of GroupTableDemo with my data, but I'm getting an exception when I try to do the next task:

_groupTableModel = new StyledGroupTableModel(calculatedTableModel);
_groupTableModel.addGroupColumn(0, DefaultGroupTableModel.SORT_GROUP_COLUMN_ASCENDING);

Exception...
Exception in thread "main" java.lang.NoSuchMethodError: com.jidesoft.grid.DefaultGroupTableModel.addGroupColumn(II)V
at com.rob.GroupTableDemo.getDemoPanel(GroupTableDemo.java:210)
at com.rob.GroupTableDemo.<init>(GroupTableDemo.java:167)
at com.rob.GroupTableDemo.main(GroupTableDemo.java:162)

Could you tell what I'm doing wrong.

Thanks.
robertho21
 
Posts: 10
Joined: Fri Oct 29, 2010 4:38 pm

Re: Jide GroupTable

Postby JIDE Support » Wed Jun 01, 2011 2:40 pm

Please check your class path to make sure any older JIDE jars are excluded in the class path for sure.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Jide GroupTable

Postby robertho21 » Thu Jun 02, 2011 6:52 am

Now is working perfect, thanks.
robertho21
 
Posts: 10
Joined: Fri Oct 29, 2010 4:38 pm


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: No registered users and 25 guests

cron