jQuery UI Widgets Forums Grid . to start cell edit

This topic contains 4 replies, has 3 voices, and was last updated by  Hristo 6 years, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • . to start cell edit #91489

    bach
    Participant

    I have a grid that accepts number inputs only, and I work with a lot of non-whole numbers.
    I want to be able to begin editing of cells with a press of ‘.’ and to have that decimal already be typed in the box.

    Currently I have to type ‘0.’ to get there, and it’s a bit awkward. The closest I’ve been able to get to what I want is to look for charCode 110 in my handlekeyboardnavigation function, but from there I’m only able to get it to start editing, but with no . in the box. This way I have to press . twice in a row and that’s even more awkward.

    any help would be appreciated

    . to start cell edit #91520

    Hristo
    Participant

    Hello bach,

    Unfortunately, there is no such option.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    . to start cell edit #91557

    Hristo
    Participant

    Hello,

    Update:
    Please, take a look at this example:
    https://www.jseditor.io/?key=jqxgrid-edit-with-decimal-point

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    . to start cell edit #97631

    mlbartonsr
    Participant

    How would you do the same thing with a minus sign to start cell edit for when entering negative numbers.
    “- to start cell edit”

    . to start cell edit #97715

    Hristo
    Participant

    Hello mlbartonsr,

    You could use the same approach with the handlekeyboardnavigation callback.
    In your case, you need to check for this symbol (““). Just check for this key.
    Please, take a look this article, it could be helpful.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.