I’m using a numberinput in conjunction with jqxgrid as column editor.
My problem is that when you begin editing a cell the cursor position is initialised to the very end of input field. This means that if you then try and type some numbers nothings happens, the user has to click in the cell to initialise the editor then move the cursor to the start or another position in the cell first.
Is it possible to override this functionality? Ideally it’d be good to initialise the editor with everything in the input field selected after the symbol character so the user can simply type the value and it will override that in there.
I tried to create this functionality using a jquery-textrange plugin.
initeditor: function (row, cellvalue, editor) {
editor.find(‘input[type=text]’).textrange(‘set’);
}
this correctly selected the text as desired but immediately after this initialise method the jqxnumberinput code reset the cursor position to the end of the input field.