cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to implement the pagination for sap.ui.table.Table by our own?

0 Kudos

I know that the pagination is supported if we use the odata model and odata API with server side. But I have to use JSON model as the server only provides the REST API. so is it possible to implement the pagination by our own? sap.ui.commons.Paginator is the one, but it is deprecated.


Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

Hi Benduo,

Do you mean pagination while scrolling?, If yes, then if you directly bind the json model it will not affect the table performance, as the the UI will be rendered only for the visible columns.

Best Regards,

Mahesh

0 Kudos

Hi Mahesh

Yes. The table has pagination while scrolling if I use json model. But I have to load all the data at one time, because the server side does not support OData API.

Thanks

maheshpalavalli
Active Contributor
0 Kudos

Oh, then I guess there is no other option, maybe you can create a custom control based on UI.table and buttons to create a old style number based pagination..