I'm just giving this example to demonstrate what's happening:
My intention is to use editorType: 'staticText' and found out that floating numbers are rendered incorrectly. If I replace editorType: 'staticText' with editorProperties: { type: 'staticText' } it works again. Is this a bug?
I also noticed problems with decimals in different locales (mine is Dutch) when editing fields. I have no example of this and I found earlier posts, but using the latest 10.1 version (SmartClient), I'm still seeing those problems.
Any help would be appreciated.
Code:
isc.NumberUtil.decimalSymbol = ',';
isc.NumberUtil.groupingSymbol = '.';
isc.HLayout.create({
members: [
// editorType: 'staticText' without decimalPrecision => OK
isc.DynamicForm.create({
fields: [{
name: 'number',
defaultValue: 123456.789,
editorType: 'staticText',
title: 'Number',
type: 'localeFloat'
}],
width: '*'
}),
// decimalPrecision in combination with editorType: 'staticText' => NOT OK
isc.DynamicForm.create({
fields: [{
name: 'number',
decimalPrecision: 3,
defaultValue: 123456.789,
editorType: 'staticText',
title: 'Number',
type: 'localeFloat'
}],
width: '*'
}),
// decimalPrecision in combination with editorProperties { type: 'staticText' } => OK
isc.DynamicForm.create({
fields: [{
name: 'number',
decimalPrecision: 3,
defaultValue: 123456.789,
editorProperties: {
type: 'staticText'
},
title: 'Number',
type: 'localeFloat'
}],
width: '*'
})
],
width: '100%'
I also noticed problems with decimals in different locales (mine is Dutch) when editing fields. I have no example of this and I found earlier posts, but using the latest 10.1 version (SmartClient), I'm still seeing those problems.
Any help would be appreciated.
Comment