Hello everybody!
I’m testing the grids and I want to make an inline cells editor, like this:
{
text: 'Number',
datafield: number,
width: 100,
align: 'center',
cellsalign: 'right',
cellsformat: 'd2',
columntype: 'numberinput',
createeditor: (row, cellvalue, editor) => {
let myvalue = 25;
editor.jqxNumberInput({
'value': myvalue,
'allowNull': false,
'min': 0,
'max': myvalue,
'textAlign': 'right',
'inputMode': 'simple'
});
}
}
As you can see this is the definition of a column with a numberinput editor. I want myvalue
as the default value in the editor, but it doesn’t take this value, the editor takes the previous value on the cell. How can I do that? Thanks in advance.