Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problems with type "localeFloat"

    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.
    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
    })

    #2
    Hello,
    We've added support of decimalPad and decimalPrecision for localeFloat type, fix for localized separators during editing have already been added earlier - please pick up the next nightly or 9.0 build (dated Oct 31 or above) to get all changes. localeFloat is not readonly field and editing works fine on your example, if you have any problem with editing on latest build please check for error messages in dev console and inform us if you still have any problems.

    Regards
    Isomorphic Software

    Comment

    Working...
    X