I have an sap.m.Table.
I am trying to manually insert a row (Custom List Item) at a particular index, but it always goes to the top instead of the index.
The table already has some Column List Items.
Please refer to the code below -
CustomListItem doesn't seem to work with Tables.
That's because a table is expected to have columns and by using the ColumnListItem, we can specify the values for each column.
That's why even if you have a CustomListItem in a table (not dynamically added), it will be added above the column headers because it cannot be added within a particular column.
Why not use a ColumnListItem and within the cells aggregation, create a 'customItem' and add it to the aggregation, if that fits your scenario.