随笔分类 -  sencha|extjs

摘要:删除以下位置的cache文件夹 C:\Users\Administrator\AppData\Local\Sencha\Sencha Architect 3.2\Cache bug解决参考 https://www.sencha.com/forum/showthread.php?334643-Cann 阅读全文
posted @ 2018-05-11 14:32 Ace001 阅读(489) 评论(0) 推荐(0)
摘要:gridstore在设置了autoLoad=false后不会自动加载数据,但是treestore不行,后来发现删掉root里的expanded:true后就可以了。但是界面上树没有展开,需在store的load回调里加上展开根节点的代码:tree.getRootNode().expand(); st 阅读全文
posted @ 2016-03-16 17:04 Ace001 阅读(1477) 评论(0) 推荐(0)
摘要:gridpanel显示checkbox: 添加SelectionModel为Checkbox Selection Model { xtype: 'gridpanel', id: 'Grid1', header: false, title: '条线列表', deferRowRender: false, 阅读全文
posted @ 2016-02-26 14:44 Ace001 阅读(2001) 评论(1) 推荐(0)
摘要:{ xtype: 'gridpanel', region: 'north', height: 150, title: 'My Grid Panel... 阅读全文
posted @ 2015-11-26 16:01 Ace001 阅读(504) 评论(0) 推荐(0)
摘要:标题列包含 审核通过则绿色,包含拒绝为红色:{ xtype: 'gridcolumn', renderer: function(value, metaData, record, rowInde... 阅读全文
posted @ 2015-11-26 15:48 Ace001 阅读(478) 评论(0) 推荐(0)
摘要:combobox下拉框的store除了可以选择一个jsonstore来加载数据,还可以直接使用符串Array做数据源.{ xtype: 'combobox', fieldLabel: 'Label', ... 阅读全文
posted @ 2015-10-28 10:27 Ace001 阅读(424) 评论(0) 推荐(0)
摘要://创建普通表格 id,父容器,标题,json数据字符串,列名(逗号分隔),json数据key即store的fields属性(逗号分隔) 使用: var grid=createCommonTable('mygrid',Ext.getCmp("gridContainer"), null, [{"姓名" 阅读全文
posted @ 2015-09-11 13:49 Ace001 阅读(673) 评论(0) 推荐(0)
摘要:store的url必填 否则报错:Uncaught TypeError: Cannot read property 'indexOf' of undefined ext-all.jsstore必须在application的stores里注册否则报错: Uncaught TypeError: Cann... 阅读全文
posted @ 2015-09-07 13:29 Ace001 阅读(382) 评论(0) 推荐(0)
摘要:sencha动态向容器里添加控件出现重叠问题原因是由于动态生成控件的id有重复导致的.(js取时间到毫秒来做id,放在for里面会出现几个控件id是相同的情况.).解决掉重复id的问题就好了.版权声明:本文为博主原创文章,未经博主允许不得转载。 阅读全文
posted @ 2015-07-20 14:29 Ace001 阅读(188) 评论(0) 推荐(0)
摘要:templatecolumn列:{ xtype: 'templatecolumn', tpl: [ '查看备注' //此处可以传递record对象里的属性,暂时没找到直接传递record对象的方... 阅读全文
posted @ 2015-06-13 15:22 Ace001 阅读(455) 评论(0) 推荐(0)
摘要:var plet3=Ext.create('portaltest3.view.Portlet', { title: '提醒', layout:'fit', height:300, items:Ext.crea... 阅读全文
posted @ 2015-05-21 13:34 Ace001 阅读(188) 评论(0) 推荐(0)
摘要:grid的某一列添加renderer:renderer: function(value, metaData, record, rowIndex, colIndex, store, view) { metaData.tdAttr = 'data-qtip="'+value+'"'; ... 阅读全文
posted @ 2015-05-20 14:24 Ace001 阅读(165) 评论(0) 推荐(0)