From: Chris Date: Thu, 13 Sep 2012 04:28:00 +0000 (+0800) Subject: Pman.Tab.AdminContactsGroupRight.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=2d8f12bd14fda6db924345ad0a6480edaf3f8c3f Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 9cf7365..18fa82c 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -267,6 +267,15 @@ "|renderer": "function(v,x,r)\n{\n if (r.json.descript && r.json.descript.length) {\n return String.format('{0}',r.json.descript);\n }\n \n return '???' + v;\n}", "|xns": "Roo.grid" }, + { + "*prop": "colModel[]", + "dataIndex": "active", + "header": "Active", + "width": 75, + "xtype": "ColumnModel", + "|renderer": "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }", + "|xns": "Roo.grid" + }, { "*prop": "colModel[]", "dataIndex": "active", diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index a0675b3..61c1c65 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -743,6 +743,19 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ return ''; + } + }, + { + xtype: 'ColumnModel', + xns: Roo.grid, + dataIndex : 'active', + header : 'Active', + width : 75, + renderer : function(v) { + var state = v> 0 ? '-checked' : ''; + + return ''; + } } ]