table header adjusted after clicking on header why???? add jpg for reference
table header adjusted after clicking on header why???? add jpg for reference
ajayg2
Posts: 2Questions: 2Answers: 0
$('#tblNotesAll').DataTable({
"destroy": true,
"scrollY": "600px",
"scrollX": true,
"scrollCollapse": true,
"ordering": true,
"pagingType": "full_numbers",
"ajax": {
"url": "../Main/GetAllTodaysNotes",
"type": "GET",
"data": {
"stickerdate": datewithslash
}
},
"sAjaxDataProp": "",
"columns": [
{
"data": "Account"
},
{
"data": "NoteDate",
"render": function (value) {
if (value === null) return "";
var pattern = /Date\(([^)]+)\)/;
var results = pattern.exec(value);
var dt = new Date(parseFloat(results[1]));
return (dt.getMonth() + 1) + "/" + dt.getDate() + "/" + dt.getFullYear();
}
}
,
{
"data": "Note",
"width": "40%"
}
,
{
"data": "FUDate",
"render": function (value) {
if (value === null) return "";
var pattern = /Date\(([^)]+)\)/;
var results = pattern.exec(value);
var dt = new Date(parseFloat(results[1]));
return (dt.getMonth() + 1) + "/" + dt.getDate() + "/" + dt.getFullYear();
}
}
,
{
"data": "User"
}
]
});![](https://datatables.net/forums/uploads/editor/12/x0gwztpscoju.png "")
This discussion has been closed.