cancel
Showing results for 
Search instead for 
Did you mean: 

Grouping in a Table

former_member182374
Active Contributor
0 Kudos

Hello Experts,

I want to implement grouping in my sap.ui.table.Table control (for one column).

It seems that the feature is already exists for sap.m.Column:

http://help.sap.com/saphelp_hanaplatform/helpdata/en/4c/98cf1b07754d22bed8b6fba68f2031/content.htm

I want to do it in jQuery (playing with rowspan/borders) but I can't find an event that is fired each time a change in the table occurs

(table created, scroll event etc).

I thought that


oTable.addEventDelegate({ onAfterRendering :

    doSomeCode();

});

will do the job but the code isn't called (nor error is written).

How can solve it?

Regards,

Omri

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Omri,

sap.ui.table.Table doesn't exist the functionality that sap.m.Table has.

www.sapui6.com has a lot of custom control. they have a custom table control and support merging cell.

Regards,

Seungwon

former_member182374
Active Contributor
0 Kudos

Thanks but I think I'll find a solution by myself and post the solution here (-:

former_member182374
Active Contributor
0 Kudos

Hello Experts,

I've managed to find a solution by changing the border (instead of playing with rowspan) - see jsbin: http://jsbin.com/fihuvo/2/edit?html,output

I've used Jasper's example from here:

http://stackoverflow.com/questions/23683627/access-row-for-styling-in-sap-ui5-template-handler-usign...

However, the solution have flaws:

1) Some of the code is not documented (the scrollbar stuff from Jasper's code).

2) A new field "d2" is added to the json just for the column border manipulation.

Another problem that I have:

When json is hardcoded everything works fine but when getting json by ajax request the UI is not updated (I've tried both 'attachRequestCompleted' and classic jQuery.ajax success callback).

What is the correct event for manipulating DOM after both model completed & UI is rendered?

Regards,

Omri

Answers (0)