Hello!
When I enter a format in my table like "##.###,####" it only works when editing, but in the view it shows me the normal number.
How can i fix this?
I attach my example
{
'field': "det_valor",
'headerName': 'Valor',
'headerText': 'Valor',
'textAlign': 'Right',
'edit': {'params': {'change': 'funChange'}},
'validationRules': {'required': True},
'format': '###0.#0',
'editType': 'numericedit',
'width': 200,
},
unedited:
editing:
|
let grid: Grid = new Grid(
{
dataSource: orderDataSource.slice(0,5),
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal', newRowPosition: 'Top' },
allowPaging: true,
columns: [
. . . . . . . . .
. . . . . . . . .
{
field: "det_valor",
headerText: 'Valor',
format: '###0.#0',
editType: 'numericedit',
width: 200,
},
. . . . . . . . . . .
. . . . . . . . . . .
],
});
grid.appendTo('#Grid');
|
|
let grid: Grid = new Grid(
{
dataSource: orderDataSource.slice(0,5),
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, mode: 'Normal', newRowPosition: 'Top' },
allowPaging: true,
columns: [
. . . . . . . . .
. . . . . . . . .
{
field: "det_valor",
headerText: 'Valor',
format: '###0.#0',
edit: { params: { format: '###0.#0', decimals: 2 } },
editType: 'numericedit',
width: 200,
},
. . . . . . . . . . .
. . . . . . . . . . .
],
});
grid.appendTo('#Grid');
|