Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Smartclient ListGrid checkbox column autofit problem

$
0
0
While enabling a previously not shown boolean column for the first time from the right click context menu, the newly appeared checkbox column will expand the entire width of the table to the right instead of shrinking the existing columns left of the new one.
This can be reproduced using the showcase demo of "DataBinding/ListGrid fields":
1. Adding a new field called "member_g8" after "countryName"
2. Click "Try It"
3. Hide "G8" through context menu "Columns"
4. Enable it again and note the horizontal scroll bar appears.
5. Repeat 3. and 4. note the outcome is different and autofit is performed.

Code:

isc.ListGrid.create({
    ID: "countryList",
    width:500, height:224, alternateRecordStyles:true,
    fields:[
        {name:"countryCode", title:"Code"},
        {name:"countryName", title:"Country"},
        {name:"member_g8", title:"G8", type:"boolean"},
        {name:"population", title:"Population", type:"integer"},
        {name:"gdp", title:"GDP", type:"float"}
    ],
    data: countryData
})


Attached Images
File Type: jpg CaptureFirstTime.JPG (61.2 KB)
File Type: jpg CaptureSecondTime.JPG (56.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles