Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

How to do sort for numbers in sap.m.table?

$
0
0

Hi All,

 

Sorting is not working properly for numbers in sap.m.table.

This is the code i have used:

view:

<ObjectNumber id="cell13" number="{oTableData>TotInvValue}" />

 

controller:

       var aSorters = [];

       var sPath = mParams.sortItem.getKey();

        var bDescending = mParams.sortDescending;

        aSorters.push(new sap.ui.model.Sorter(sPath, bDescending));

        oBinding.sort(aSorters);

 

Anything is missing for numbers sorting?

please suggest me.

 

 

Thanks & Regards,

Preethi Ande


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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