title: kendodropdownlist not binding value to model after post
body: <p>I'm using kendo UI for my project. I have a kendo dropdownlist that I'm populating with json. I get the values in my dropdownlist but on post, the model doesn't get the selected value of the dropdownlist. I have been stuck on it for a day with no result. I'm not sure where I'm going. Please review the code</p>
  
  <p>View:</p>
  
  <pre><code>      @model IEnumerable&lt;EntityFrameworkClasses.StaggingException&gt;
  
  
  
                  @foreach (var item in Model)
      {
  
  
  
  
          @(Html.Kendo().DropDownListFor(modelItem =&gt; item.Level2)
                    .Name("Level2")
                    .HtmlAttributes(new { style = "width:10%" })
                    .OptionLabel("Select level 2...")
                    .DataTextField("Text")
                    .DataValueField("Value")
                    .BindTo((System.Collections.IEnumerable)ViewBag.Level2)
  
          )
  }
  
  
  @(Html.Kendo().Grid(Model)
      .Name("CashExceptionsGridTest")
      .Columns(columns =&gt;
      {
  
  
  
          columns.Bound(p =&gt; p.Category).Title("Category").Width(130);
          columns.Bound(p =&gt; p.EnterText1).Title("Comments").Width(130);
          columns.Bound(p =&gt; p.Dateoftransaction).Title("Date").Width(130);
          columns.Bound(p =&gt; p.InternalLocalAmount).Title("InternalAmt").Width(130);
          columns.Bound(p =&gt; p.ExternalLocalAmount).Title("ExternalAmt").Width(130);
  
      })
            .ToolBar(toolbar =&gt;
                  {
                       //toolbar.Template("&lt;a class='k-button k-button-icontext' onclick='customCommand()' href='#'&gt;&lt;/span&gt;Cutom Command&lt;/a&gt;");
  
                           toolbar.Create(); // The "create" command adds new data items.
                            toolbar.Save();// The "save" command saves the changed data items.
  
                        })
          .Editable(editable =&gt; editable.Mode(GridEditMode.InCell)) // Use in-cell editing mode.
          .HtmlAttributes(new { style = "height: 550px;" })
  
  
  
      .HtmlAttributes(new { style = "height: 350px;" })
      .Pageable(pageable =&gt; pageable
      .Input(true)
      .Numeric(false)
      )
             .Reorderable(r =&gt; r.Columns(true))
               .Sortable()
               .ColumnMenu()
               .Scrollable(scr =&gt; scr.Height(430))
               .Filterable()
      .DataSource(dataSource =&gt; dataSource
      .Ajax()
      .PageSize(20)
      .ServerOperation(false)
  
  
                   .Batch(true) // Enable batch updates.
                             .Model(model =&gt;
                                  {
                                      model.Id(p =&gt; p.RowID); // Specify the property which is the unique identifier of the model.
                                      model.Field(p =&gt; p.RowID).Editable(false); // Make the ProductID property not editable.
                                  })
  
  
  
                .Update("Editing_Update", "MultiTab")
                .Create("Editing_Create", "MultiTab")
                 )
  
  
  
  
  )
  }
  </code></pre>
  
  <p>I have a kendo grid below which im not including for code brevity.</p>
  
  <p>Controller:</p>
  
  <pre><code>  public ActionResult GetLevel()
              {
         IEnumerable&lt;SelectListItem&gt; Level2 = db2.StaggingInternalCashExceptions.Where(x=&gt;x.LoadID==loadid).Select(c =&gt; new SelectListItem
              {
  
                  Value = c.Level2.ToString(),
                  Text = c.Level2
  
              }).Distinct();
  
              return  View();
  
              }
  
    [AcceptVerbs(HttpVerbs.Post)]
           public ActionResult Editing_Create([DataSourceRequest] DataSourceRequest request, [Bind(Prefix = "models")]IEnumerable&lt;StaggingException&gt; results)
           if (results != null &amp;&amp; ModelState.IsValid)
           {
               foreach (var result in results)
                var entity = new StaggingException();
                       entity.RowID = result.RowID;
                       entity.Category = result.Category; //this is a textbox in the view for which i get the value
                       entity.Level1 = result.Level1; //gives null
  //I'm adding those values to the db. Didn't include all that for the sake of keeping it short.
  }
  }
  </code></pre>
  
  <p>The grid has batch editing, once i hit on save changes, the grid's data is posted to the controller where i can see it in results. I cannot get the dropdown value though.
  Any ideas or leads please.
  Thank you.</p>