
ExtJS
liangjm99
这个作者很懒,什么都没留下…
展开
-
ExtJS -- grid没有数据时不出现横向滚动条的问题
执行以下语句就可以了grid.getView().refresh();或grid.getStore().removeAll();原创 2016-05-04 09:54:41 · 592 阅读 · 0 评论 -
ExtJS -- QuickTip grid设置鼠标移动到行时提示第一列的信息
//设置鼠标移动到行时提示第一列的信息erweiGrid.on('mouseover', function(e) {// 添加mouseover事件 var index = erweiGrid.getView().findRowIndex(e.getTarget());// 根据mouse所在的target可以取到列的位置 if (index !== f原创 2016-05-04 10:38:34 · 538 阅读 · 0 评论 -
ExtJS -- form提交之取ComboBox的值
就是一个Form啊,里面有下拉列表,使用extjs里面的ComboBox一旦选中了某一个选项,就无法选择其他的了,因为下拉选项里面只有这个当前选中的备选项。无论我怎么提交,提交过去的都是显示的选项而不是对应的value。第一个问题抄了别人的代码看明白了,原来是在设置ComboBox的时候需要把参数triggerAction设置成为'all',它默认的是'query'转载 2016-05-04 11:13:20 · 577 阅读 · 0 评论 -
ExtJS -- Ext.Ajax.request 返回结果判断
Ext.Ajax.request({ url : 'delete_Gkcsjzk.action', params : { id : record.get('id') }, success : function(response, options) { myMask.hide(); if(Ext.util.Format.trim(response.responseT原创 2016-05-04 10:44:04 · 585 阅读 · 0 评论 -
ExtJS -- QuickTip TextField鼠标移过提示内容
{ xtype : 'textfield', id : 'jcxm', hiddenValue : '', width : 120, listeners:{'render':function(el){ el.getEl().on('mouseover',function(){ el.getEl().set({原创 2016-05-04 11:21:17 · 563 阅读 · 0 评论 -
ExtJS -- 改变树节点图标 tree
.x-tree-node .nodeicon { background-image: url(resources/bl_images/16-member-add.png); } this.loader.on('load', function(tree, node) { var nodes = node.childNodes; for (var i = 0; i <原创 2016-05-04 12:34:58 · 584 阅读 · 0 评论 -
ExtJS -- 各种Store
//ArrayStorestore: new Ext.data.ArrayStore({ fields:[ 'sexTypeid', 'sexTypename' ], data:[["MAN","男"],["WOMEN","女"],["NONE","男女不限"]] })//JsonStorenew Ext.data.Js原创 2016-05-04 12:36:25 · 482 阅读 · 0 评论 -
ExtJS -- renderer 参数
renderer:function(value,cellmeta,record,rowIndex,columnIndex,store){}原创 2016-05-04 12:38:51 · 241 阅读 · 0 评论 -
ExtJS -- grid交替行颜色设置(隔行变色)
.x-grid3-row-alt{ /*设置GridPanel的交替行颜色*/ background-color:#E6E6E6; }原创 2016-05-04 12:40:47 · 1588 阅读 · 0 评论