title: knockoutjs radio integer databind for check not working
body: <p>check <a href="http://jsfiddle.net/p6fny/11/" rel="nofollow noreferrer">JSFiddle</a></p>
  
  <pre><code>&lt;div data-bind="foreach: ids" class=""&gt;
      &lt;label&gt;                      
          &lt;input type="radio"  name="someid" data-bind="value: value, checked: $root.selectedid" /&gt;
          &lt;span data-bind="text: text"&gt;&lt;/span&gt;
      &lt;/label&gt;
  &lt;/div&gt;
  &lt;br/&gt;
  &lt;input type="button" data-bind="click: test1" value="Test1"/&gt;
  &lt;input type="button" data-bind="click: test2" value="Test2"/&gt;
  &lt;input type="button" data-bind="click: test3" value="Test3"/&gt;
  </code></pre>
  
  
  
  <p>function radiodata(text,value){
          this.text = text;
          this.value= value;
      }</p>
  
  <pre><code>var viewModel = function(){
      var self = this;
      self.selectedid = ko.observable();
  
      self.ids = ko.observableArray([
          new radiodata('one',1),
          new radiodata('two',2),
          new radiodata('three',3)
           ]);
      self.test1 = function(){
        self.selectedid(2);//this doesnot work
      };
       self.test2 = function(){
        self.selectedid('2');//this works
      };
       self.test3 = function(){
        self.selectedid((3).toString());//this was my hack
      };
  }
  
  var model = new viewModel();
  ko.applyBindings(model);
  </code></pre>
  
  <p>I was trying to <code>radio databind</code> for <code>checked</code> property, 
  My json data for <code>selectedid</code> is integer which I was trying to bind <code>checked</code> for radio.</p>
  
  <p>I have patched solution for that too, but does anyone know why integer databind is not working? </p>
  
  <p>like, where <code>self.testX</code> functions will change the radio <code>checked</code> property</p>
  
  <pre><code>self.test1 = function(){
    self.selectedid(2); //this doesnot work
  };
   self.test2 = function(){
    self.selectedid('2');//this works
  };
   self.test3 = function(){
    self.selectedid((3).toString()); //and this was my hack
  };
  </code></pre>
  
  <p>any good explanation ?</p>