cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a function after rendering of a control.

rohitrohi
Explorer
0 Kudos

Hi Experts,

I have a button and an input in a view. I have designed this view such that if u give value to the input and click on button that many number of rows will be displayed and table gets displayed.

Now the problem is i need to call a function once the table is rendered and displayed. How can i achieve this.


Thanks

Rohit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You can use onAfterRendering method.

SAPUI5 SDK - Demo Kit

rohitrohi
Explorer
0 Kudos

Hi Rajeesh,

That will get executed before table is rendered (Displayed on view).

But i need once the table is displayed on the view.

Thanks

Rohit

saivellanki
Active Contributor
0 Kudos

Hi Rohit,


Is it sap.m.Table? If so, you can call the function at updateFinished event of table.

API: JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.ListBase

Regards,

Sai Vellanki.

rohitrohi
Explorer
0 Kudos

Hi Vellanki,

Nup Nothing is happening

Thanks

Rohit