Kendo UI Inline grid not receiving Date Fields but other fields value getting in controller -


i have used kendo ui grid inline editing, filed received in controller date field not receiving why?

this code, please me

grid---

$(document).ready(function() {                     $("#orders-grid").kendogrid({                         datasource: {                             type: "json",                             transport: {                                 read: {                                     url: "@html.raw(url.action("customerlist", "customer"))",                                     type: "post",                                     datatype: "json",                                 },                                 create: {                                     url: "@html.raw(url.action("customeradd", "customer"))",                                     type: "post",                                     datatype: "json"                                 },                                 update: {                                     url:"@html.raw(url.action("customerupdate", "customer"))",                                     type: "post",                                     datatype: "json"                                 },                                 destroy: {                                     url: "@html.raw(url.action("customerdelete", "customer"))",                                     type: "post",                                     datatype: "json"                                 },                              },                              schema: {                                 data: "data",                                 total: "total",                                 errors: "errors",                                 model: {                                     id: "id",                                     fields: {                                         stfname: { editable: true, type: "string", validation: { required: true } },                                         id: { editable: false, type: "number" },                                         stmname: { editable: true, type: "string", validation: { required: true } },                                         dtdob: { editable: true, type: "date",format : "dd/mmm/yyyy", validation: { required: true } },                                         strefname: { editable: true, type: "string", validation: { required: true } },                                     }                                 }                             },                             requestend: function (e) {                                 if (e.type == "create" || e.type == "update") {                                     this.read();                                 }                             },                             error: function(e) {                                 //display_kendoui_grid_error(e);                                 // cancel changes                                 this.cancelchanges();                             },                             pagesize: 10,                             serverpaging: true,                             serverfiltering: true,                             serversorting: true                         },                         pageable: {                             refresh: true,                             pagesizes: [10]                         }, //scrollable: false,                         // databound: ondatabound,                         sortable: true,                         scrollable: {                             virtual: true                         },                         toolbar: ["create"],                         editable: {                             confirmation: false,                             mode: "inline"                         },                         columns: [                             {                                 field: "id",                                 title: "id",                                 width: 50                             },{                                 field: "stfname",                                 title: "first name",                                 //attributes: { "class": "upper" },                                 width: 200                             },                                 {                                     field: "dtdob",                                     title: "d.o.b.",                                     //editor: customdateeditor,                                     type: "date",                                     template: "#=kendo.tostring(dtdob,'dd/mmm/yyyy')#",                                     //template: '<input type="date" name="dtdob" />',                                    width: 200,                                    //parseformats: ["yyyy-mm-dd't'hh:mm:ss.zz"]                                  },                                 {                                     field: "strefname",                                     title: "reference",                                     width: 200                                 },                             {                             command: [{                                 name: "edit",                                 text: "edit"                             }, {                                 name: "destroy",                                 text: "delete"                     }],                        width: 200,                     filterable: true                     }]                     });                      var customdateeditor = function (container, options) {                         $('<input />')                             .appendto(container)                             .kendodatepicker({                                 format: "dd/mmm/yyyy"                             });                     };                     }); --model 

public partial class tblcustomer { public int id { get; set; } public string stfname { get; set; } public datetime dtdob { get; set; } } }

controller----      public actionresult customerupdate(tblcustomer model) <-all value receive  in model except date field dtdob             {     }  have check in firebug there ajax call , fields pass event date too, not receiving in controller why?  regards, vinit patel 

please go through link given below. have couple of solutions issue fixing. please revert if issue persists.

passing dates kendo ui asp.net mvc


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -