Categories | Question details Back To List | ||
price cell-type hi again.. thank you you've been very helpfull.. i have this question regarding "price" cell type.. i wonder if there's any way that i can limit it to 2 decimal places.. for example the user entered 4.353, it would be rounded off to 4.35 instead.. i am initializing my grid through the xml, so i would be expecting the answer to be done in xml or by editting your *.js and also how to disable resizing of columns in xml.. thank you very much for your help.. Answer posted on Nov 20, 2007 04:26 >>i wonder if there's any way that i can limit it to 2 decimal places.. You can use edn excell instead grid.setColTypes("edn"); grid.setNumberFormat("$0.00",0); in result all data will have two digits after decimal point ( of course it possible to create a custom excell with any kind of formatting, but proposed solution is much simplier on my opinion ) >>and also how to disable resizing of columns in xml.. There is no special attribute, but you can call command directly from XML <rows> <head> .... <afterInit> <call command="enableResizing"><param>true,false,false</param></call> </afterInit> </head> <row... |