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

SAPSAP 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());
}
raja
Published on 25-Dec-2017 18:33:13

Advertisements