コード例 #1
0
        public ActionResult DocumentGridViewPartialUpdate([ModelBinder(typeof(DevExpressEditorsBinder))] PandoraWeb.Models.Common.DocumentGridViewModel item)
        {
            var model = new object[0];

            if (ModelState.IsValid)
            {
                try
                {
                    // Insert here a code to update the item in your model
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("~/Views/Document/_DocumentGridViewPartial.cshtml", model));
        }
コード例 #2
0
 public DocumentModel()
 {
     Customers       = new KeyValueObject[0];
     DocumentDetails = new DocumentGridViewModel[0];
 }