cancel
Showing results for 
Search instead for 
Did you mean: 

Reordering sap.m.Table Columns

11-29-2017 12:36 PM
1472 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

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

irfan_gokak
Contributor
0 Likes

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.

former_member227918
Active Contributor
0 Likes

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