05 2012 档案

摘要:还记得在4.0.7之前的版本中,要在gridpanel中加一个合计栏是多么麻烦啊,4.0出现后,一句话就搞定直接copy官方的Ext.onReady(function () { Ext.define('TestResult', { extend: 'Ext.data.Model', fields: ['student', { name: 'mark', type: 'int' }] }); Ext.create('Ext.gri... 阅读全文
posted @ 2012-05-07 16:55 zdkjob 阅读(14557) 评论(0) 推荐(0)
摘要:思路大家肯定是知道的:1 上级combo在select事件中清除下级的value2 在每一级combo中的store,beforeload事件中去get上一级下拉菜单的选中值,以此来获取数据网上代码很多,我就不重复了,只是很多兄弟没有注意下面这一点,导致菜单出现“灵异”现象。。。3 combo中有一项重要的Propertie ,那就是lastQuery,用来存放上一次的数据,如果你没有把这个删掉,那么当你重新选择上一级菜单后,再选择下级时就会出现一直都在loading的状态,虽然数据是load到了,但mask却始终不消失 也就是说,你需要在store的beforeload或combo的befo 阅读全文
posted @ 2012-05-07 09:21 zdkjob 阅读(4799) 评论(0) 推荐(0)
摘要:开发环境 ExtJS 4.07Ext.onReady(function () { Ext.define('Ext.form.ClosableFieldSet', { extend: 'Ext.form.FieldSet', alias: 'widget.closablefieldset', //覆盖父类的方法 initLegend: function () { var me = this; me.callParent(arguments); ... 阅读全文
posted @ 2012-05-04 09:43 zdkjob 阅读(2522) 评论(0) 推荐(0)
摘要:验证环境 ext-4.0.7-gpl 1 Ext.onReady(function () { 2 Ext.widget('panel', { 3 title: 'IFrame事件', 4 width: 500, 5 height: 200, 6 items: { 7 xtype: 'component', 8 autoEl: { 9 tag: 'iframe',10 ... 阅读全文
posted @ 2012-05-02 09:49 zdkjob 阅读(1742) 评论(0) 推荐(0)