Code:
isc.DataSource.create({ ID:"countryDS", fields: [ { name: "Id", hidden:true, primaryKey:true, type:"integer"}, { name: "countryName", title: "Country", type:"text" }, { name: "countryCode", title: "Code", type: "text", click: function () { [B]var infinityObject = countryDS.fields["gdp"].validators[1].dynamicErrorMessageArguments; debugger;[/B] } }, { name: "gdp", title: "GDP ($B)", type: "float", validators: [ { type: "floatRange", min: "1", max: "100", precision: "2", errorMessage: "Must enter 1-100" } ] }, ], clientOnly: true, testData: [ { Id: 1, countryName: "United States", countryCode: "US", gdp:50}, { Id: 2, countryName: "China", countryCode: "CS", gdp: 70 }, { Id: 3, countryName: "Japan", countryCode: "JP", gdp: 55 }, { Id: 4, countryName: "Turkey", countryCode: "TR", gdp: 40 } ] }) isc.ListGrid.create({ ID:"countryGrid", width: 500, height: 224, alternateRecordStyles: true, dataSource: countryDS, autoFetchData: true, canEdit:true });
Firefox 43.0.4
Chrome 53.0.2785.143
I added floatRange validator to gdp field. After floatRange validator working,generates infinity dynamicErrorMessageArguments object in floatRange Validator object . I also tried this code in Feature Examples code panel. I getting same problem. Simply you look at infinityObject in code.
Best Regards...
Comment