Pman.Tab.AdminCountries.bjs
authorChris <chris@roojs.com>
Tue, 18 Mar 2014 13:30:30 +0000 (21:30 +0800)
committerChris <chris@roojs.com>
Tue, 18 Mar 2014 13:30:30 +0000 (21:30 +0800)
Pman.Tab.AdminCountries.js

Pman.Tab.AdminCountries.bjs
Pman.Tab.AdminCountries.js

index 8ce9736..0b8185c 100644 (file)
@@ -66,7 +66,7 @@
                             "header": "Country",
                             "width": 200,
                             "xtype": "ColumnModel",
-                            "|renderer": "function(v,x,r)\n{   \n    return String.format('{0}', r.data.country_tr);\n}",
+                            "|renderer": "function(v,x,r)\n{\n    if(v == 'subGroup'){\n        return String.format('<b>{0}</b>', r.data.country_tr);\n    }\n    \n    return String.format('{0}', r.data.country_tr);\n}",
                             "|xns": "Roo.grid"
                         },
                         {
index fdd0826..06c47b0 100644 (file)
@@ -187,7 +187,11 @@ Pman.Tab.AdminCountries = new Roo.XComponent({
                         header : 'Country',
                         width : 200,
                         renderer : function(v,x,r)
-                        {   
+                        {
+                            if(v == 'subGroup'){
+                                return String.format('<b>{0}</b>', r.data.country_tr);
+                            }
+                            
                             return String.format('{0}', r.data.country_tr);
                         }
                     }