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

Sort arrow icon not displayed on ListGrid header when showTitle false

$
0
0
The sort arrow icon is not displayed on the ListGrid header when the showTitle of a field is set to false (e.g. when just using an icon to show as the column header instead).

Problem can be reproduced on a slighty modified SmartClient Sort example on http://www.smartclient.com/#sort using SmartClient Version: v9.1p_2015-02-05/Pro Deployment (built 2015-02-05) on Firefox 36 and Chrome 40.0 as follows:

Code:

isc.ListGrid.create({
    ID: "countryList",
    width:500, height:224, alternateRecordStyles:true,
    data: countryData,
    fields:[
        {name:"countryCode", title:"Flag", width:50, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},
        {name:"countryName", title:"Country"},
        {name:"population", title:"Population", format:",0", showTitle: false, icon: "flags/16/JA.png"},
        {name:"area", title:"Area (km²)", format:",0"}
    ],
    // initial sort on Population, high-to-low
    sortFieldNum: 2,
    sortDirection: "descending"
})

Steps to reproduce:

Click on the column header of the 3rd column (e.g. population) to initiate a column sort. The column is sorted but the sort arrow icon is not displayed on this column to indicate the sort direction.

A workaround seems to be setting the title to ' ' and remove the showTitle flag (default back to true).

----------------
SmartClient Version: v9.1p_2015-02-05/Pro Deployment (built 2015-02-05)
Windows 7 Firefox 36.0 and Chrome 40.0.2214.115 m

Viewing all articles
Browse latest Browse all 4756

Trending Articles