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

special characters in editable table

$
0
0
I have the following issue - not sure if it is desired behaviour:

I have an editable table in which I have provided a display field. The display field escapes the special character that I have in the string. The actual value contains the special character unescaped. Click into the first row's Country Name - I am expecting it to show the countryName VALUE but it shows the displayField value - Could you please tell me what I am missing?

Code:


countryData = [

{
    countryCode:"US",
c$df:"Umlauts: ü",
countryName: "Umlauts: ü",    population:298444215
},
{
    countryCode:"CH",
    countryName:"China",
    population:1313973713
},
{
    countryCode:"JA",
    countryName:"Japan",
    population:127463611
}];

isc.ListGrid.create({
    autoDraw: false,
    ID: "countryList",
    height:30,
    width:500, alternateRecordStyles:true,
    autoFitMaxRecords: 5,
    autoFitData: "vertical",
    data: countryData,
    canEdit: true,
    editEvent: "click",
    listEndEditAction: "next",
    enterKeyEditAction: "nextRowStart",
    fields: [
        {name: "countryCode", title: "Country Code"},
        {name: "countryName", title: "Country Name", displayField:"c$df", _constructor:"TextItem"},
        {name: "population", title: "Population"}
    ]
})

isc.IButton.create({
    ID: "button",
    autoDraw: false,
    title:"Edit New",
    click:"countryList.startEditingNew()"
});

isc.VStack.create({
    membersMargin: 10,
    members: [
        countryList, button
    ]
});


Viewing all articles
Browse latest Browse all 4756

Trending Articles