Kendu上传没有通过下拉值

时间:2014-08-15 18:40:45

标签: asp.net-mvc file-upload kendo-ui asp.net-mvc-viewmodel

当我使用Kendu上传控件时,我无法获得控制器的下拉值。当我不使用Kendu上传和只是常规输入和按钮时,该值将传递给控制器​​。我认为它必须与ASYNC回发有关。有任何想法吗? enter image description here

enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

您可以通过以下方式进行操作:

 upload: function(e)
          {
              var additional = '@Html.Raw(Json.Encode(Model))';
                    e.data = JSON.parse(additional);
          }

并在控制器中 public ActionResult Save(HttpPostedFileBase文件,ViewModel附加) { }