Roo/View.js
authorEdward <edward@roojs.com>
Tue, 23 Dec 2014 10:27:47 +0000 (18:27 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Dec 2014 10:27:47 +0000 (18:27 +0800)
Roo/View.js

index 5efa6a0..99bc298 100644 (file)
@@ -283,13 +283,16 @@ Roo.extend(Roo.View, Roo.util.Observable, {
             
             if(this.tickable){
                 Roo.apply(d, {'roo-id' : Roo.id()});
-            }
-            
-            var _this = this;
-            Roo.log(this.parent.valueField);
-            Roo.each(this.parent.item, function(item){
                 
-            });
+                var _this = this;
+            
+                Roo.each(this.parent.item, function(item){
+                    if(item[_this.parent.valueField] != data[_this.parent.valueField]){
+                        return;
+                    }
+                    Roo.apply(d, {'roo-data-checked' : 'checked'});
+                });
+            }
             
             html[html.length] = Roo.util.Format.trim(
                 this.dataName ?