Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Is there any event for table after render?

Hi All,

I want to add extra row in table after rendering of table. Is there any way to add extra row after table is bind to model.

I can do DOM manipulation if I get onAfterRender event of table. But in specification I didn't find any such event.

I am able to add columns in table also they are bound to model.Once data is bound base on some calculation I have to add extra row in bottom of table. Bottom row is nothing but summation of data shown in top rows.

Any help is appreciated

Thanks in advance.

Tags:
Former Member
Former Member replied

Here's an example of the usage of addEventDelegate. Instead of onfocusin, you can simply use onAfterRendering: JS Bin - Collaborative JavaScript Debugging</title> <link rel="alternate" type="application/jso…

Also, you can overwrite onAfterRendering as you did above, but you'll need to invoke the default implementation via sap.ui.table.Table.prototype.onAfterRendering.apply(this, arguments); before invoking any custom logic (e.g. console.log).

Note that addEventDelegate is the preferred approach.

- Max

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question