cancel
Showing results for 
Search instead for 
Did you mean: 

sap.table.table onAfterRendering event breaks the table rows and cols

Former Member
0 Kudos

Hi guys,

I am coloring all the rows, which don't have an entry.

I do that by using the event onAfterRendering from the table control.

The coloring is working fine, but the rows and cols get broken as u can see on the attached picture.

By adding a new entry to the table, they get fixed.

Any ideas how could i fix that?

I appreciate any help.

Regars,

Georgi

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor

This is because you have overwritten the library code 🙂

please do this.

<yourControl>.onAfterRendering = function() {

     sap.ui.table.Table.prototype.onAfterRendering.apply(this);

     <your code> ....

}

-D

Former Member
0 Kudos

Many thanks Dennis,

i know i was overwriting some functions, but that doesn't mean the table should break that way

Regards,

Georgi

former_member182862
Active Contributor
0 Kudos

FYI, I ran into this issue before and it also took me a while to figure it out

Cheers

-D

Answers (1)

Answers (1)

pt_nguyen
Explorer
0 Kudos

Thank you so much!!!