title: Ignite ui combobox with mvc 4.0 helpers load from database error
body: <p>i am trying to use a ignite ui componet called combobox , and i was trying to follow this tutorial on the igniteui page.</p>
  
  <p>heres is the link:
  <a href="http://www.igniteui.com/combo/aspnet-mvc-helper" rel="nofollow">http://www.igniteui.com/combo/aspnet-mvc-helper</a></p>
  
  <p>the tutorial uses a repository factory, and i am using entity framework model with linq.
  i already use some of the components of ignite ui, like igGrid, and i followed the tutorial on this video</p>
  
  <p><a href="http://www.infragistics.com/products/jquery/grid/videos/iggrid-entity-framework-model" rel="nofollow">http://www.infragistics.com/products/jquery/grid/videos/iggrid-entity-framework-model</a> 
  to make the grid bind with ef model.</p>
  
  <p>I am having problems with the binding of the data to the combobox,i wqas trying to follow the same approach to the bing of iggrid, but i am having some problems..</p>
  
  <p>in my view i have got this..</p>
  
  <pre><code> @(Html.Infragistics().ComboFor(item=&gt;item.IDCliente)
  
                  .Width("270px")
                  .DataSourceUrl(Url.Action("cliente-combo-data"))
                  .ValueKey("ID")
                  .TextKey("Name")
                  .DataBind()
                  .Render()
              )
  </code></pre>
  
  <p>in the controller i have this:</p>
  
  <pre><code>    [ComboDataSourceAction]
      [ActionName("cliente-combo-data")]
      public ActionResult ComboData()
      {
          return View(LicenciamentoMVC.Models.ClienteModel.GetListaClientes());
      }
  </code></pre>
  
  <p>and in my cliente class i have this:</p>
  
  <pre><code> public class ClienteModel
  {
      private static Cliente entity;
      public static IQueryable&lt;Cliente&gt; GetListaClientes()
      {
          MvcApplication1Context db = new MvcApplication1Context();
  
          var customers = from c in db.Clientes
                          orderby c.IDCliente descending
                          where c.Rem==0
                          select c;
  
          return customers.AsQueryable&lt;Cliente&gt;();
      }
  </code></pre>
  
  <p>the <strong>error</strong> that is giving me is:
  '<strong>System.Collections.Generic.IEnumerable' does not contain a definition for 'IDCliente' and no extension method 'IDCliente' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?)</strong> </p>
  
  <p>What changes do i need to do, or the best way to go is instead of using entity model go for repository...
  thanks in advance..</p>