custom styling for columns with ajax populated table?
custom styling for columns with ajax populated table?
coderman1
Posts: 6Questions: 1Answers: 0
I have about 10 different tables on a page that show stock prices. The tables are populated using ajax:
$('#moderateGrid').dataTable(
{ "bServerSide": true,
"bProcessing": true,
"sAjaxSource": "/json_get_stocks/?type=moderate",
"bFilter": false,
"bPaginate": false,
"bSort": false,
"bRetrieve": false,
"bDestroy": true,
"bInfo": false,
"iDisplayLength": 100,
"aaSorting": []
}
);
I used to have this grid populated via html so it was easy to style each cell, but I am a little confused where to add that styling now that its ajax?
Thanks!
Craig
$('#moderateGrid').dataTable(
{ "bServerSide": true,
"bProcessing": true,
"sAjaxSource": "/json_get_stocks/?type=moderate",
"bFilter": false,
"bPaginate": false,
"bSort": false,
"bRetrieve": false,
"bDestroy": true,
"bInfo": false,
"iDisplayLength": 100,
"aaSorting": []
}
);
I used to have this grid populated via html so it was easy to style each cell, but I am a little confused where to add that styling now that its ajax?
Thanks!
Craig
This discussion has been closed.
Replies
Allan
Allan