jQuery UI Widgets › Forums › Grid › Autoresize and columnsresize bug?
This topic contains 4 replies, has 3 voices, and was last updated by Dimitar 10 years, 2 months ago.
-
Author
-
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.
Hi marcus,
Thank you for your feedback. We will investigate why this issue occurs.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/It’s been almost a year and it doesn’t look like there has been any resolution as of 3.9.1. I haven’t figured a work around for it yet. Anyone?
Hi rbanks,
Unfortunately, this issue is still not fixed, but it has been noted. We will try to fix it for one of our future versions.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.