代码改变世界

随笔档案-2009年7月5日

ExtJs Grid怎样合计列,取其他列的值

2009-07-05 16:41 by 午夜瞎想, 2737 阅读, 收藏,
摘要: 1: { 2: dataIndex : 'Price', 3: header : '金额', 4: hidden : false, 5: renderer : function (value, cellmeta, record, rowIndex, columnIndex, store) 6: { 7: return record.data["Price"]*record.d... 阅读全文

ExtJs怎样提交验证

2009-07-05 16:11 by 午夜瞎想, 1635 阅读, 收藏,
摘要: 1: new Ext.form.NumberField ({allowBlank : false, //是否非空 2: blankText : '单价不能为空',//验证错误信息 3: decimalPrecision : 0,//数字的精度 4: fieldLabel : '单价', 5: id : '_Price', 6: name : 'Price' 7: }) 8: ],提交时: 1:... 阅读全文