Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #109359

    I need, in my grid, to input numbers but I don’t want the useless up and down buttons, but the control of numericity of input it would be appreciated.

    Which kind of editing should I choose ?

    Tks

    #109364
    Markov
    Keymaster

    Hi,

    You can look at https://www.htmlelements.com/demos/grid/editing-cell/. The quantity and unit price columns are with number edit.

    Regards,
    Markov

    #109366

    Yes  but editing the field I see the up and down button I don’t want because when the field is small they take too much space to see the real number.

    I’d like to have a number editing without buttons which are very often useless.

    Tks

    #109367
    ivanpeevski
    Participant

    Hi,

     

    You can hide the up/down buttons with the following CSS:
    smart-grid smart-number-input{
    –smart-editor-addon-width: 0px;
    }

     

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

    #109368

    I added

    smart-grid smart-number-input{
    –smart-editor-addon-width: 0px;
    }

    to my css but it doesn’t seem to work.

    What’s wrong?

    Tks

    #109374
    ivanpeevski
    Participant

    Hi,

    There should be two dashes for the css variable, it seems one got lost when pasting the code. Here is the corrected version:

    smart-grid smart-number-input{
    --smart-editor-addon-width: 0px;
    }

    Best Regards,
    Ivan Peevski
    Smart UI Team
    https://www.htmlelements.com/

    • This reply was modified 11 months, 4 weeks ago by ivanpeevski.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.