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

MVC DataTables return DT_RowClass Serverside process

$
0
0
Having a little trouble returning the "DT_RowClass" from a serverside Ajax class. I want that class applied to all of the rows in the datatable. Here is my code that is in the controller that returns the Json. I tried numerous way to return the "DT_RowClass". Can anyone take a quick look at the code below? Thanks in advance for the help.


var result = from msg in messages
select new[] {
msg.messageId
msg.From,
msg.To,
msg.Subject,
msg.Content
};

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

Viewing all articles
Browse latest Browse all 82273

Trending Articles



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