cfgrid

Decimal numbers in a HTML cfgridcolumn

给你一囗甜甜゛ 提交于 2019-12-24 12:04:59
问题 For some reason all my cfgrids drop the ending 0 of dollar amounts. So 104.50 is coming up as 104.5 and 332.80 is coming up as 332.8 It displays the last digit if it is not a 0. So 345.43 is fine. I have tried using the currency type but that only works with flash grids. This seems like an easy problem but I am stuck and everything I am trying is not working. Any help on this would be great. Thanks! 回答1: This is for CF9 (ExtJS 3.x). <cfsavecontent variable="formatGridInit"> <script language=

cfgrid boolean column as Yes/No

岁酱吖の 提交于 2019-12-07 12:33:46
问题 I have a boolean type column in an html cfgrid. The data is stored in the database as 1/0 and is returned from CF as such. I want the user to see Yes/No instead of 1/0. I tried QuerySetCell, and couldn't get it to work. The form is editable, when you double click the cell, the checkboxes show and it updates as it should. The only issue is the display. <cfform> <cfgrid name="blah" format="html" bind="mycfccall" selectmode="edit"> <cfgridcolumn name="bitCol" header="Is it" width="75" type=

cfgrid boolean column as Yes/No

浪子不回头ぞ 提交于 2019-12-06 03:27:41
I have a boolean type column in an html cfgrid. The data is stored in the database as 1/0 and is returned from CF as such. I want the user to see Yes/No instead of 1/0. I tried QuerySetCell, and couldn't get it to work. The form is editable, when you double click the cell, the checkboxes show and it updates as it should. The only issue is the display. <cfform> <cfgrid name="blah" format="html" bind="mycfccall" selectmode="edit"> <cfgridcolumn name="bitCol" header="Is it" width="75" type="boolean"> </cfgrid> </cfform> Thanks in advance... You'll need to apply a custom field renderer. You'll