title: How to bind the data to Listview in kendo UI Mobile
body: <p>how to bind the data from web service to Kendo UI mobile (IOS).I have tried using the web service the page is displaying blank and when i'm binding data directly it is showing me the data in the html page(the commented data).Can anyone provide me any sample code or any examples.</p>
  
  <p>here i'm providing my code which i have tried </p>
  
  <p>code in html page</p>
  
  <pre><code>&lt;div data-role="view" id="flat" data-init="mobileListViewDataBindInitFlat" data-title="ListView"
      data-layout="databinding"&gt;
      &lt;ul id="flat-listview"&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function (){   
          var dataS = new kendo.data.DataSource({
              transport: {
                  read: {
                      type: 'GET',
                      url: 'mobileAppWebService.asmx/EmployeeNames',
                      dataType: 'json',
                      data: '{}',
                      contentType: 'application/json; charset=utf-8'
                  },
                  schema: {
                      data: "d"
                  }
              }
          });
          debugger
          $("#flat-listview").kendoMobileListView({
              dataSource: dataS,
              template: "${ename}"
          });
  
   //                    var dataSource = ["Sashimi salad", "Chirashi sushi", "Seaweed      salad", "Edamame", "Miso soup", "Maguro", "Shake", "Shiromi", "Tekka maki",      "Hosomaki Mix", "California rolls", "Seattle rolls", "Spicy Tuna rolls", "Ebi     rolls", "Chicken Teriyaki", "Salmon Teriyaki", "Gohan", "Tori Katsu", "Yaki Udon"];
    //                    function mobileListViewDataBindInitFlat() {
    //                        $("#flat-listview").kendoMobileListView({
   //                            dataSource: dataSource,
   //                            endlessScroll: true                           
   //                        });
   //                    };
        });
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      var app = new kendo.mobile.Application(document.body);
  &lt;/script&gt;
  </code></pre>
  
  <p>code in web service</p>
  
  <pre><code> SqlConnection con = new SqlConnection("Data Source=SHANKAR-PC\\SQLEXPRESS;              Initial          Catalog=Occumen;Integrated Security=True");
  
  [WebMethod]
  public List&lt;EmpNames&gt; EmployeeNames()
  {
      SqlDataAdapter da = new SqlDataAdapter("select ename from emp", con);
      DataSet ds = new DataSet();
      da.Fill(ds, "names");
      return LstEmpNames(ds);
  }
  
  public List&lt;EmpNames&gt; LstEmpNames(DataSet ds)
  {
      List&lt;EmpNames&gt; objenamelst = new List&lt;EmpNames&gt;();
      for (int i = 0; i &lt; ds.Tables[0].Rows.Count; i++)
      {
          EmpNames objemp = new EmpNames();
          objemp.ename = ds.Tables[0].Rows[i][0].ToString();
          objenamelst.Add(objemp);
      }
      return objenamelst;
  }
  </code></pre>