JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › Grid editing numbers
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
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
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.
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/
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?
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; }