This is a migrated thread and some comments may be shown as answers.

columnMenu: Turning off column visibility collapses grid

1 Answer 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 20 May 2014, 06:53 PM
I have a grid with 10 columns of various widths:

columns: [{
        field: "items__item",
        title: "Item Id",
        width: 25
    }, {
        field: "items__name",
        title: "Item Name",
        width: 125
    }, {
        field: "items__average_historic_price",
        title: "Avg Hist Price",
        width: 25
    }, {
        field: "items__price_currency",
        title: "Currency",
        width: 25
    }, {
        field: "items__quantity",
        title: "Quantity",
        width: 25
    }, {
        field: "attribute79_value",
        title: "Major Customer?",
        width: 125
    }, {
        field: "attribute84_value",
        title: "Orig City",
        width: 75
    }, {
        field: "attribute85_value",
        title: "Orig State",
        width: 25
    }, {
        field: "attribute89_value",
        title: "Dest City",
        width: 75
    }, {
        field: "attribute90_value",
        title: "Dest State",
        width: 25
    }
]

The grid renders fine. I have columnMenu set to true. When I go to any column menu and deselect a checkbox in the Columns section, that column is hidden as expected but all the remaining columns shrink and collapse to the left (see attached).

This behavior does not happen if i set all columns to the same width (ex: 200).

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 22 May 2014, 06:12 AM
Hello Doug,

The behavior which you describe is expected. The following article explains in great details how column width behaves: Column widths.

Regards,
Nikolay Rusev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Doug
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or