I tested the new type “localeFloat”, but there are two problems:
1. "decimalPad” and “decimalPrecision” are not recognized, but it would be very useful.
2. When editing a localeFloat only the decimal point is recognized as decimal separator regardless what isc.NumberUtil.decimalSymbol is set to.
Is “localeFloat” only for “readonly” fields?
I modified the “Grids” – “Editing” – “Edit by Cell” example in the current feature explorer.
1. "decimalPad” and “decimalPrecision” are not recognized, but it would be very useful.
2. When editing a localeFloat only the decimal point is recognized as decimal separator regardless what isc.NumberUtil.decimalSymbol is set to.
Is “localeFloat” only for “readonly” fields?
I modified the “Grids” – “Editing” – “Edit by Cell” example in the current feature explorer.
Code:
isc.NumberUtil.decimalSymbol = ',';
isc.NumberUtil.groupingSymbol = '.';
isc.ListGrid.create({
ID: "countryList",
width:550, height:224, alternateRecordStyles:true, cellHeight:22,
dataSource: countryDS,
fields:[
{name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png", canEdit:false},
{name:"countryName"},
{name:"continent"},
{name:"member_g8"},
{name:"gdp", type: "localeFloat", decimalPad:2},
{name:"independence"}
],
autoFetchData: true,
canEdit: true,
editEvent: "click",
editByCell: true
})
Comment