Rows with no data are visible after applying search in grid SAP UI5

The “No Data” rows are being shown in the grid irrespective of having no data is because of the “VisibleRowCount” attribute of the control. It controls the number of visible rows. So, once you are binding the table again after applying the filters, you need to update it dynamically to the number of rows in the matched result.

Something similar to this −

onBindingChange: function(oEvent) {
    this.getView().byId("<your table>").setVisibleRowCount(oEvent.getSource().getLength());
}
Updated on: 2020-02-17T10:56:18+05:30

524 Views

Advertisements