日期:2014-05-16 浏览次数:20342 次
xtype : "actioncolumn", html:'<div class="x-column-header-inner" id="ext-gen1293" style="padding-top: 0px; height: auto; "><span class="x-column-header-text" id="ext-gen1295">帐号状态</span><div class="x-column-header-trigger" id="ext-gen1294"></div></div>', sortable : false, dataIndex : "enabled", items: [{ icon:"js/extjs/resources/icons/ms.gif", tooltip: '改变帐号状态', getClass:function(v,m,r,rIndex,cIndex,store){ if (r.get('enabled')){ return 'unlock'; }else{ return 'lock' } }, handler: function(grid, rowIndex, colIndex) { var rec = grid.getStore().getAt(rowIndex); rec.set("enabled",!rec.get("enabled")); rec.commit(); } }]