sorting decimal column with comma separated in jquery data table grid

sorting decimal column with comma separated in jquery data table grid

suvrosuvro Posts: 3Questions: 0Answers: 0
edited November 2013 in General
this is not working..plz help!!

{ "sName": "cp","sSortDataType": "dom-text", "sType": "numeric-comma", "sDefault": "",

"mRender": function (data, type, full) {

return '' + data + '';
}

var result = from c in displayedCompanies select new[] { Convert.ToString(c.dd),c.cp.Value.ToString("N2") };

return Json(new
{
sEcho = param.sEcho,
iTotalRecords = allCompanies.Count(),
iTotalDisplayRecords = filteredCompanies.Count(),
aaData = result
},
JsonRequestBehavior.AllowGet);

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    As noted in the forum rules, please link to a test case showing the problem.

    Allan
This discussion has been closed.