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

headerMenuButton problem with headerSpans and frozen span

$
0
0
SmartClient Version: v9.0p_2013-12-03/PowerEdition Development Only (built 2013-12-03)

please modify the showCase sample #gridHeaderSpans like this:
Code:

isc.ListGrid.create({
    ID: "countryList",
    width:600, height:224, alternateRecordStyles:true, autoFitFieldsWidth:true,
    headerHeight: 40,
    dataSource: countryDS,
    autoFetchData: true,
    fields:[
        {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
        {name:"countryName", title:"Country", width:120},
        {name:"capital", width:120},
        {name:"government", width:120},
        {name:"independence", title:"Nationhood", width:120},
        {name:"population", title:"Population", formatCellValue:"isc.NumberUtil.toUSString(value)", width:150},
        {name:"area", title:"Area (km²)", formatCellValue:"isc.NumberUtil.toUSString(value)", width:150},
        {name:"gdp", formatCellValue:"isc.NumberUtil.toUSString(value)", width:150}
    ],
    headerSpans: [
        {
            fields: ["countryCode", "countryName"],
            title: "Identification"
        },
        {
            fields: ["capital", "government", "independence"],
            title: "Government & Politics"
        },
        {
            fields: ["population", "area", "gdp"],
            title: "Demographics"
        }
    ]
   
})

then froze "Government & Politics".

hovering on Nationhood or Government will show the headerMenuButton of Government column in the wrong position (the Independence headerMenuButton never shows)

scrolling to the right fixes the problem, but if you scroll to the left the problem is still there.

Viewing all articles
Browse latest Browse all 4756

Trending Articles