Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82271

SORT COLUMN NUMBER

$
0
0
Hello,

I have this code for a column:

{                            
                "mData": "credito_restante",                
                "sDefaultContent": "",
                "bSortable": true,
                "mRender": function (val, type, row) {                                                            
                    
                    var sReturn = "<strong style='color:purple'>" + val + "</strong>";                                                                           
                    return sReturn;
                }
 },

But when I sort by this column, it sorts as a text, not as a number.
I try this:

sType: numeric

But not works, Any idea please??

Thank you!

Viewing all articles
Browse latest Browse all 82271

Trending Articles



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