Skip to Content
0

Reordering sap.m.Table Columns

Nov 29, 2017 at 11:36 AM

139

avatar image
Former Member

Hello All,

I am trying to reorder sap.m.table columns. I used sap.m.ColumnListItem for column.

Is there any best way to reorder already binded columns. If i remove all items and and bind them again the backend call will go again. I don't want backend call to go again. I want to reorder the columns using exsting data which is already binded.

Thanks,

Kavita

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Irfan Gokak Dec 02, 2017 at 11:26 AM
0

Hi,

Call odata from controller and make JSON binding. Once you do that whatever changes you do to the table like filter and sorting doesn't hit the backend.

Hope I'm clear.

Share
10 |10000 characters needed characters left characters exceeded
Akhilesh Upadhyay Nov 30, 2017 at 06:23 AM
0

possible if you are using json model only, its not possible in case of odata model backend hit happens

Share
10 |10000 characters needed characters left characters exceeded
Arjun Biswas Dec 04, 2017 at 06:23 AM
0

Hi Kavita Tondihal,

It is difficult to reorder back end data, especially if you are binding your UI controls from your default model as soon as your view is rendered. But if you are reordering your back end data on triggering of an event such as button click or list item press, then you can try to achieve reordering by using an JSON model or you can try using the $top and $skip query parameters also.

Hope this helps,

Regards,

Arjun Biswas

Share
10 |10000 characters needed characters left characters exceeded