Hello,
I am trying to get the grid working as desired, on load the columns are autosized, but when a filter is applied the columns are autosized for a brief moment, and then shrink.
$("#Results").jqxGrid({
width: '100%',
source: dataAdapter,
columns: [ @Html.Raw(Json.Encode(ViewData["Fields"]).Replace('"', ' ').ToString()) ],
sortable: true,
filterable: true,
autoheight: true,
autoshowfiltericon: true,
columnsresize: true,
ready: function () {
$('#Results').jqxGrid('autoresizecolumns');
},
theme: 'energyblue',
});
$('#Results').on('filter', function () {
$('#Results').jqxGrid('autoresizecolumns');
});
Thanks for any help on this.
Guy