jQuery UI Widgets Forums Grid Autoresize and columnsresize bug?

This topic contains 4 replies, has 3 voices, and was last updated by  Dimitar 8 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Autoresize and columnsresize bug? #69325

    marcus
    Participant

    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.

    Autoresize and columnsresize bug? #69326

    marcus
    Participant

    Here’s an example:
    Example

    Autoresize and columnsresize bug? #69339

    Dimitar
    Participant

    Hi marcus,

    Thank you for your feedback. We will investigate why this issue occurs.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Autoresize and columnsresize bug? #80721

    rbanks
    Participant

    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?

    Autoresize and columnsresize bug? #80730

    Dimitar
    Participant

    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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.