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());
}

Anil SAP Gupta
Anil SAP Gupta

SAP Expert

Updated on: 17-Feb-2020

303 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements