Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9076

Re: How to count selected rows with checkbox in sap.m.table

$
0
0

Hi,

 

I saw your example which is showing the selected rows context but not the number of total selected rows.

 

I already achieved that functionality with below code.Please let me know the property/way to get the count of total number of selected rows.

 

onSelectionChange1: function(oEvent){

           var oSelectedItemContext = oEvent.getParameter("listItem").getBindingContext();

           var selectedItems = sap.ui.getCore().byId("viewid").byId("tbl").getSelectedItems();

}

 

If I select only one row , it should display 1. If I select 3 rows,it should display as 3.

 

Regards,

Koti Reddy


Viewing all articles
Browse latest Browse all 9076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>