title: How to bind bit value True or False in Kendo ui dropdownlist
body: <p>I want to bind a record based on the record in the database for the selected personid using kendo Ui dropdownlist. If isDisable is null then it need to bind to Please select option. However, i have issue with it. Here is the code that i have so far:</p>
  
  <p>here is the table:</p>
  
  <pre><code>PersonId  PersonName    isDisable (bit datatype)
  1         Jack          False
  2         Tony          True
  3         Brian         Null 
  
  controller:
  TRN_DataAccessLayer.Person data = dbPerson.GetPersonbyID(id);
  ViewBag.isDisable= data.isDisable;
  </code></pre>
  
  <p>In View Razor page:</p>
  
  <pre><code>&lt;input type="isDisable" id="isDisable" name="isDisable" style="width:220px; font-size:12px; align:center; font-size:11px; width:156px; length:35px;margin:1.0em 1.5em 5px -10px"/&gt;
  
  &lt;script&gt;
  
   var data= [
                          { text: "Yes", value: "1" },
                          { text: "No", value: "0" },
  
          ];
  
  var cond = parseInt(@ViewBag.isDisable) === 0;
  $("#isDisable").kendoDropDownList({
  
              dataTextField: "text",
              dataValueField: "value",
              dataSource: data,
              index: cond ? 0 : 1,
              optionLabel: {
                  text: "Please Select",
                  value: "-1"
              }
  
  
  
          });
  
  
  &lt;/script&gt;
  </code></pre>