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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
possible if you are using json model only, its not possible in case of odata model backend hit happens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.