Utilizing 4.4.4 - jQuery Grid
and <= jquery 1.8.2
, this is how I set up my jqgrid:
function FAGrid() {
var url1 = 'URL';
$("#FAList").jqGrid({
url: url1,
datatype: 'json',
mtype: 'POST',
colNames: ['rowId', 'FAID', 'Employee', 'Date<br/> Filed', 'Duration', 'Shift', 'ProjectSite', 'Contact Person', 'Purpose', 'Requested By', 'Approved By', 'Date Approved'],
colModel: [
{ name: 'rowId', index: 'rowId', hidden: true, width: 20 },
{ name: 'FAID', index: 'FAID', hidden: true, editable: true, sortable: false, width: 20, align: 'center' },
{ name: 'CompleteName', index: 'CompleteName', hidden: false, editable: true, sortable: false, width: 160, align: 'center' },
{ name: 'FADateFiled', index: 'FADateFiled', hidden: false, editable: true, sortable: false, width: 52, align: 'center' },
{ name: 'Duration', index: 'Duration', hidden: false, editable: true, sortable: false, width: 97, align: 'center' },
{ name: 'ShiftDesc', index: 'ShiftDesc', editable: true, hidde: false, width: 75, align: 'center' },
{ name: 'ProjectSite', index: 'ProjectSite', editable: true, sortable: false, width: 75, align: 'center' },
{ name: 'FAContactPerson', index: 'FAContactPerson', editable: true, hidde: false, width: 75, align: 'center' },
{ name: 'Purpose', index: 'Purpose', editable: true, sortable: false, width: 75, align: 'center' },
{ name: 'FARequestedBy', index: 'FARequestedBy', editable: true, sortable: false, width: 115, align: 'center' },
{ name: 'FAApprovedBy', index: 'FAApprovedBy', editable: true, sortable: false, width: 115, align: 'center' },
{ name: 'FADateApproved', index: 'FADateApproved', editable: true, sortable: false, width: 75, align: 'center' }
],
pager: $('#FAPager'),
rowNum: 5,
rowList: [5, 10, 20],
sortname: 'FADateFiled',
sortorder: 'desc',
viewrecords: true,
imgpath: '/Content/themes/redmond/images/',
height: '100%',
loadComplete: function () {
var ids = jQuery("#FAList").getDataIDs();
var len = ids.length,
newLine;
if (len < 5) {
AddNewRowToGrid(len, "#FAList");
}
}
});
}
Despite adjusting the width of elements like Name in the grid, the alignment remains unchanged. What could be causing this issue - CSS, JQgrid, or something else?