The behaviors autosave(true)-autoload(true) not working correctly with fluent size in use. Affects column width and order.
—
var data = generatedata(500);
var source = {
localdata: data,
datafields: [{
name: ‘quantity’,
type: ‘number’
}, {
name: ‘price’,
type: ‘number’
}],
datatype: “array”
};
var adapter = new $.jqx.dataAdapter(source);
$(“#jqxgrid”).jqxGrid({
width: “100%”,
theme: ‘energyblue’,
autoloadstate: true,
autosavestate: true,
source: adapter,
sortable: true,
columns: [{
text: ‘Quantity’,
datafield: ‘quantity’,
width: “50%”,
cellsalign: ‘right’
}, {
width: “40%”,
text: ‘Unit Price’,
datafield: ‘price’,
cellsalign: ‘right’,
cellsformat: ‘c2’
}, {
text: “”, width: “10%”, datafield: null, align: “center”, columntype: “button”, sortable: false, filterable: false, menu: false, exportable: false,
cellsrenderer: function (row, columnfield, value, defaulthtml, columnproperties, rowdata) {
return “button”;
}
}]
});