sorting decimal column with comma separated in jquery data table grid
sorting decimal column with comma separated in jquery data table grid
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);
{ "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);
This discussion has been closed.
Replies
Allan