Hi,
I found that when you resize a column manually after it has been autoresized the column is losing its current width. This only happens for columns that doesn’t have a width defined in the column settings.
Ex.
$(“#jqxgrid”).jqxGrid({
width: 500,
theme: ‘energyblue’,
source: adapter,
columnsresize: true,
ready: function () {
$(‘#jqxgrid’).jqxGrid(‘autoresizecolumns’);
},
columns: [{
text: ‘First Name’,
datafield: ‘firstname’,
columngroup: ‘Name’
}, {
text: ‘Last Name’,
columngroup: ‘Name’,
datafield: ‘lastname’
}, {
text: ‘Product’,
datafield: ‘productname’,
width: 0
}, {
text: ‘Order Date’,
datafield: ‘date’,
width: 160,
cellsformat: ‘dd-MMMM-yyyy’
}, {
text: ‘Quantity’,
datafield: ‘quantity’,
width: 80,
cellsalign: ‘right’
}, {
text: ‘Unit Price’,
datafield: ‘price’,
cellsalign: ‘right’,
cellsformat: ‘c2’
}]
});
The columns ‘First Name’ and ‘Last Name’ will lose their width in this example.
A bug i guess?
You can work around it by always setting the width property for all columns.