jqgrid setting precision and scale for a decimal value -


all, i'm trying create custom formatter using jqgrid should feasible set precision , scale values.

most of forum questions mentioning decimal places restrict digits before , after decimal places.

i.e, cell should have 2 digits before decimal places , 2 digits after decimal places. when user types 123456, after keyout event cell should display 12.34

any suggestions?

it seems me need no custom formatter used during loading of data server example. instead of need use control in input field of editing of grid. example mask plugin (see the old answer) allows implement want. additionally 1 can set maxlength property of input field (see the documentation) restrict maximal number of characters user can type. if user type 123456 first 4 characters displayed (as 12.34) , no 5 or 6 see @ all.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -