Skip to Content
avatar image
Former Member

Reordering sap.m.Table Columns

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 02, 2017 at 11:26 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 30, 2017 at 06:23 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 04, 2017 at 06:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded