Forum

Jennifer Häfner
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (310)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    1 year ago #38610
    Up
    0
    Down
    ::

    Grouping the list items with a Sorter works via JavaScript code. Insert this snippet after you have loaded your data for the list (adapt the list ID and the path):

    var oSorter = new sap.ui.model.Sorter({
    path: 'group', // the path to the feature that you want to group the list items by
    descending: false,
    group: true
    });
    
    sap.ui.getCore().byId("Screen2--f_GridList1").getBinding("items").sort(oSorter);