Ext2.2-用XML做数据源,可编辑Grid的例子 - Ext - 提供最全面最实用的Java面试题,Java代码,Java项目,Java :: editor: new fm.NumberField({ // 数字编辑框 decimalPrecision: 0, // 默认的小数点位数 默认按照姓名正向排序 }); // 创建可编辑的 Grid var grid = new Ext.grid.EditorGridPanel({ store: http://www.java2000.net/p8972HOME | Hello,
I have numberfields on EditorGridPanel.
When I click the numberfield without changing, and clicking another field, It puts red star on the left top corner of the numberfield. It behaves like changed field.
I don't want it.
What can I do?
Thanks for your attention.
the Editorgrid example doesn't behave like you said (try it out on the price column):
http://extjs.com/deploy/dev/examples/grid/edit-grid.html
check your 'price' Record field definition and make sure it's correctly defined as a float
i.e.
{name: 'price', type: 'float'}
Dear mystix, Ext学习及应用经验心得体会小结 - Extjs - AJAX实例站 - 最全的AJAX相关技术资料站点。:: 树信息的TreePanel、用于显示表格的GridPanel及EditorGridPanel,还有代表应用程序窗口的Ext.Window等都 同样的道理,对于Ext的表单字段来说,不管是ComboBox,NumberField、还是DateField,他们其它都是Ext.form.Field类的子类, http://www.ajaxsamples.cn/html/20604.htmlHOME | Ext学习及应用经验小结-开源人博客:: 树信息的TreePanel、用于显示表格的GridPanel及EditorGridPanel,还有代表应用程序窗口的Ext.Window等都 同样的道理,对于Ext的表单字段来说,不管是ComboBox,NumberField、还是DateField,他们其它都是Ext.form.Field类的子类, http://www.vifir.com/portal.ejf?cmd=topicShow&id=2490368HOME |
Thank you for quick reply.
I looked the example, you are right.
I don't understand why my numberfileds behaves different.
My code is:
{
id:'cmOurPrice',
hidden :false,
header: "Our Price",
dataIndex: 'Price',
width: 60,
sortable: true,
renderer: function(data) {
var decimalZero=true;
var showCurrency = true;
return '' + formatNumber(Number(data),decimalZero,showCurrency ) + '
Dear mystix,
You are right again. I forgot to define type:'float'.
My problem solved by this way.
thank you very much...
good works.
Where's The Advantage In Windows Genuine Advantage?
Stocks Bounce After S&P Joins Bear Market |