jQWidgets Forums
jQuery UI Widgets › Forums › Grid › grid with number columns
Tagged: javascript grid, jquery grid editing
This topic contains 8 replies, has 2 voices, and was last updated by damc 12 years ago.
-
Authorgrid with number columns Posts
-
Hi,
I have problem with editing int numbers and decimal numbers in jqxGrid. How to implement that user can put only numbers in specific column (integer numbers (0, 1, 2, 3, …) not chars)?
How to implement that user can delete number and then cell is empty (like in String columns), not with value 0. Same problems I have with decimal numbers.How to solve that user can put only numbers in cell and cell value is formated like 1.234,24?
Than you for your help,
DamcHi Damc,
You can learn how from this sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/cellediting.htm?classic
There are Int and Decimal columns in the sample.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter,
Thank you for your answer. I miss in sample functionality that quantity or price can be empty (user must have option to clear cell not only to put on zero. Zero is in mine case like 1 – it is data).
Is it possible to clear price or quantity cell?
Best Regards,
DamcHi Damc,
Users can clear a cell even in that sample. Select a cell and press the “Del” key.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter!
Is it possible to implement “Del” key action on Context Menu action like sample for edit and delete selected row. Users would like to have action for delete selected cell value on right click?
Best Regards,
Damc
Hi,
Pressing the “Del” key deletes the cell’s value even in the current version – see: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/defaultfunctionality.htm?web. Select a cell and press the “Del” key.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
This was not my question. I am sorry for bad explanation of problem.
My question is: if it is possible to implement “Del” key functionality on mouse right click (like sample with Context Menu)?Thank you for your answer!
Damc
Hi,
Yes, it is possible. You may take a look at the Context Menu sample and the Grid’s API, especially the setcellvalue method to delete the cell’s value.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
It works fine!
Thank you for your answer!
Damc
-
AuthorPosts
You must be logged in to reply to this topic.