MVC DataTables return DT_RowClass Serverside process
MVC DataTables return DT_RowClass Serverside process
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);
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);
This discussion has been closed.
Replies
Allan