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

listGridField.valueIconClick not called

$
0
0
SmartClient Version: v10.0p_2014-11-04/EVAL Development Only (expires 2015.01.03_18.46.24) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY)

Safari, Chrome on OSX
Please modify the #columnOrder sample in the showcase like this:
Code:

isc.ListGrid.create({
    ID: "countryList",
    width: 500, height: 224, alternateRecordStyles: true,
    data: countryData,
    getValueIcon: function (field, value, record) {
        if (field.name === 'countryCode') {
            return "flags/16/" + value + ".png"
        } else {
            return null;
        }
    },
    fields: [
        { name: "countryCode", type: "icon", title: "Flag", width: 40, align: "center",
            showValueIconOnly: true,
            valueIconClick: function (viewer, record, recordNum, field, rawValue, editor) {
                isc.logEcho('click')
            }
        },
        {name: "countryName", title: "Country"},
        {name: "capital", title: "Capital", showIf: "false"},
        {name: "continent", title: "Continent"}
    ]
})

clicking on the icons doesn't call valueIconClick

Viewing all articles
Browse latest Browse all 4756

Trending Articles