jQWidgets Forums

jQuery UI Widgets Forums Grid jqxgrid problem with createeditor

This topic contains 8 replies, has 2 voices, and was last updated by  dmesabar 5 years ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • jqxgrid problem with createeditor #112135

    dmesabar
    Participant

    Hi,
    When one cell have the function createeditor dont have the same comportament to edit the cell.
    See the example
    When you go to cell quantity and start to write, the first number that you wrote aren’t not put into the cell.
    Unit price and total working because dont have the function createeditor.
    How can resolve?
    Thanks

    jqxgrid problem with createeditor #112145

    Hristo
    Participant

    Hello dmesabar,

    Please, try to set the columntype: "numberinput" member for this column.
    I hope this will help.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    jqxgrid problem with createeditor #112146

    dmesabar
    Participant

    Hi Hristo,
    You can see the example
    When i have columntype: "numberinput" and I opend the cell to edit, the number is not the same.
    I will have this types of number with 10 decimals to edit.
    I cant use cellsformat: "D2" because i will lost all number and when is execute cellvaluechanged or cellendedit, the value will have only 2 decimals.
    Thanks

    jqxgrid problem with createeditor #112157

    Hristo
    Participant

    Hello dmesabar,

    Please, take a look at this example:
    http://jsfiddle.net/ps3e8mfa/
    Also, I would like to mention that you could transform the jqxNumberInput to work with decimals.
    For this purpose, you could use the decimalDigits property.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    jqxgrid problem with createeditor #112160

    dmesabar
    Participant

    Hi Hristo,
    The problem persist in your example.
    If you start to write on cell of quantity, before the jqxinput was visible, the first number that you write are not put into the jqxinput. Only will start to write when you type two times the number.
    I know that i can use decimals with the property decimalDigits.
    If I use for example 2 decimals on jqxinput, when is execute cellvaluechanged or cellendedit, independently of if I change or not the original value, the value that will put, only will be with two decimals.
    I edited your exemple. On cell of total, if you enter with enter key and finish one more time with enter, you will edit the cell, but really you didn’t edit the number, only you executed to see the jqxinput
    Thanks.

    jqxgrid problem with createeditor #112168

    Hristo
    Participant

    Hello dmesabar,

    To achieve this editing with the first click you need to set the editmode: "click" property.
    Another, option that I would like to suggest is to implement the handlekeyboardnavigation callback.
    When is selected cell from this specific column and is used number from the user to typing then you could use the begincelledit method.
    Also, its the opposite method at the desired moment if you need the endcelledit method.
    I hope this will help.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    jqxgrid problem with createeditor #112171

    dmesabar
    Participant

    Hi Hristo,
    You can see the image to reproduce the problem.
    On this case, I need press two times the number on keyboard to edit the cell.

    However, on cell of Unit Price works perfectly because don’t have createeditor

    Thanks.

    jqxgrid problem with createeditor #112182

    Hristo
    Participant

    Hello Singh_kiatec,

    Yes, this happens because it does not go in the edit mode.
    I mean that editor is not invoked.
    Please, take a look at this example:
    http://jsfiddle.net/5apc0oqt/1/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    jqxgrid problem with createeditor #112211

    dmesabar
    Participant

    Hi Hristo,
    I think that now works perfectly.
    I did two modifications.
    On handleKeys function and initeditor function, I added the condition else because when you edit the cell and you go to another and press enter key, the value will be the last key or last value of the last cell edited.

    Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.