Kendo UI for jQuery Grid date not posting to the server sidekendo ui grid datasource filter date formatpopulate kendo ui grid in JavascriptKendo UI grid. Not transmitted parameters - pageSize and SkipJSONP response for Kendo UI does not populate gridKendo Grid UI edited value but not savedKendo UI Grid Persist state in AngularJSasp.net mvc kendo ui grid encrypt column dataWhy kendo Ui -grid date is not sorting properly?Kendo Grid :TypeError: $(…).saveAsExcel is not a functionKendo grid check validation with button

Based on what criteria do you add/not add icons to labels within a toolbar?

Is it double speak?

Identify Batman without getting caught

Why did the US Airways Flight 1549 passengers stay on the wings?

Is there a way to say "double + any number" in German?

Why do dragons like shiny stuff?

Did Apollo leave poop on the moon?

Whats the difference between <processors> and <pipelines> in Sitecore configuration?

Only charge capacitor when button pushed then turn on LED momentarily with capacitor when button released

Why can I log in to my facebook account with misspelled email/password

Did silent film actors actually say their lines or did they simply improvise “dialogue” while being filmed?

What is the German idiom or expression for when someone is being hypocritical against their own teachings?

Why do proponents of guns oppose gun competency tests?

How to make attic easier to traverse?

How many years before enough atoms of your body are replaced to survive the sudden disappearance of the original body’s atoms?

Traveling from Germany to other countries by train?

Repeated! Factorials!

Ancients don't give a full level?

Can I enter a rental property without giving notice if I'm afraid a tenant may be hurt?

Generate a random point outside a given rectangle within a map

Best way to explain to my boss that I cannot attend a team summit because it is on Rosh Hashana or any other Jewish Holiday

How to approach protecting my code as a research assistant? Should I be worried in the first place?

How to realistically deal with a shield user?

Why do cheap flights with a layover get more expensive when you split them up into separate flights?



Kendo UI for jQuery Grid date not posting to the server side


kendo ui grid datasource filter date formatpopulate kendo ui grid in JavascriptKendo UI grid. Not transmitted parameters - pageSize and SkipJSONP response for Kendo UI does not populate gridKendo Grid UI edited value but not savedKendo UI Grid Persist state in AngularJSasp.net mvc kendo ui grid encrypt column dataWhy kendo Ui -grid date is not sorting properly?Kendo Grid :TypeError: $(…).saveAsExcel is not a functionKendo grid check validation with button






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I am having an issue with Kendo grid pop up editor not sending date data to the server side.



Please see the code below:



JavaScript:



$(document).ready(function () 
var serviceBaseUrl = "@Request.Url.ToString()",
lostPropertyDataSource = new kendo.data.DataSource(
transport:
create:
url: serviceBaseUrl + "/AddLostProperty",
type: "POST",
dataType: "json",
,
read:
url: serviceBaseUrl + "/GetLostProperties",
type: "GET",
dataType: "json",
contentType: 'application/json; charset=utf-8',
,
update:
url: serviceBaseUrl + "/UpdateLostProperty",
type: "POST",
dataType: "json"
,
destroy:
url: serviceBaseUrl + "/DeleteLostProperty",
type: "DELETE",
dataType: "json"
,
,
requestEnd: onRequestEnd,
pageSize: 20,
schema:
model:
id: "PropertyId",
fields:
//PropertyId: type: "number", nullable: true ,
PropertyName: type: "string", editable: true, validation: required: true ,
CategoryName: type: "string", editable: true, validation: required: true ,
PropertyDescription: validation: required: false ,
//Image: validation: required: false ,
FoundDate: type: "date", format: '0:dd-MM-yyyy' ,
FoundLocation: editable: true, validation: required: false


,
);


$("#manageLostPropertiesGrid").kendoGrid(
dataSource: lostPropertyDataSource,
pageable: true,
height: 550,
toolbar: ["create"],
columns: [
// command: text: "View Photo", click: showPhoto , title: " ", width: "180px" ,
field: "PropertyName", title: "Property Name", width: "150px" ,
field: "CategoryName", title: "Category", editor: propertyCategoryList, width: "150px",
field: "PropertyDescription", title: "Description", width: "200px" ,
field: "FoundDate", type: "date", title: "Found Date", format: "dd/MM/yyyy", template: "#= kendo.toString(kendo.parseDate(FoundDate, 'dd-MM-yyyy'), 'dd/MM/yyyy') #", width: "130px" ,
field: "FoundLocation", title: "Found Location", width: "120px" ,
command: ["edit", "destroy"], title: "&nbsp;", width: "250px" ],
editable: "popup"
).data("kendoGrid");

function onRequestEnd(e)
if (e.type != "read")
e.sender.read();



function propertyCategoryList(container, options)
$('<input name="' + options.field + '"/>')
.appendTo(container)
.kendoDropDownList(
autoBind: true,
dataTextField: "CategoryName",
dataValueField: "CategoryName",
valuePrimitive: false,
autoBind: true,
dataSource:
transport:
read: serviceBaseUrl + "/GetPropertyCategories",


);

);


The view model has got other data but the date is getting a null value even a date is entered in the grid.



enter image description here



And the data posted from the client side can be seen from the browser:



enter image description here



The question is how to send the date to the server side from Kendo Grid?










share|improve this question






























    1















    I am having an issue with Kendo grid pop up editor not sending date data to the server side.



    Please see the code below:



    JavaScript:



    $(document).ready(function () 
    var serviceBaseUrl = "@Request.Url.ToString()",
    lostPropertyDataSource = new kendo.data.DataSource(
    transport:
    create:
    url: serviceBaseUrl + "/AddLostProperty",
    type: "POST",
    dataType: "json",
    ,
    read:
    url: serviceBaseUrl + "/GetLostProperties",
    type: "GET",
    dataType: "json",
    contentType: 'application/json; charset=utf-8',
    ,
    update:
    url: serviceBaseUrl + "/UpdateLostProperty",
    type: "POST",
    dataType: "json"
    ,
    destroy:
    url: serviceBaseUrl + "/DeleteLostProperty",
    type: "DELETE",
    dataType: "json"
    ,
    ,
    requestEnd: onRequestEnd,
    pageSize: 20,
    schema:
    model:
    id: "PropertyId",
    fields:
    //PropertyId: type: "number", nullable: true ,
    PropertyName: type: "string", editable: true, validation: required: true ,
    CategoryName: type: "string", editable: true, validation: required: true ,
    PropertyDescription: validation: required: false ,
    //Image: validation: required: false ,
    FoundDate: type: "date", format: '0:dd-MM-yyyy' ,
    FoundLocation: editable: true, validation: required: false


    ,
    );


    $("#manageLostPropertiesGrid").kendoGrid(
    dataSource: lostPropertyDataSource,
    pageable: true,
    height: 550,
    toolbar: ["create"],
    columns: [
    // command: text: "View Photo", click: showPhoto , title: " ", width: "180px" ,
    field: "PropertyName", title: "Property Name", width: "150px" ,
    field: "CategoryName", title: "Category", editor: propertyCategoryList, width: "150px",
    field: "PropertyDescription", title: "Description", width: "200px" ,
    field: "FoundDate", type: "date", title: "Found Date", format: "dd/MM/yyyy", template: "#= kendo.toString(kendo.parseDate(FoundDate, 'dd-MM-yyyy'), 'dd/MM/yyyy') #", width: "130px" ,
    field: "FoundLocation", title: "Found Location", width: "120px" ,
    command: ["edit", "destroy"], title: "&nbsp;", width: "250px" ],
    editable: "popup"
    ).data("kendoGrid");

    function onRequestEnd(e)
    if (e.type != "read")
    e.sender.read();



    function propertyCategoryList(container, options)
    $('<input name="' + options.field + '"/>')
    .appendTo(container)
    .kendoDropDownList(
    autoBind: true,
    dataTextField: "CategoryName",
    dataValueField: "CategoryName",
    valuePrimitive: false,
    autoBind: true,
    dataSource:
    transport:
    read: serviceBaseUrl + "/GetPropertyCategories",


    );

    );


    The view model has got other data but the date is getting a null value even a date is entered in the grid.



    enter image description here



    And the data posted from the client side can be seen from the browser:



    enter image description here



    The question is how to send the date to the server side from Kendo Grid?










    share|improve this question


























      1












      1








      1








      I am having an issue with Kendo grid pop up editor not sending date data to the server side.



      Please see the code below:



      JavaScript:



      $(document).ready(function () 
      var serviceBaseUrl = "@Request.Url.ToString()",
      lostPropertyDataSource = new kendo.data.DataSource(
      transport:
      create:
      url: serviceBaseUrl + "/AddLostProperty",
      type: "POST",
      dataType: "json",
      ,
      read:
      url: serviceBaseUrl + "/GetLostProperties",
      type: "GET",
      dataType: "json",
      contentType: 'application/json; charset=utf-8',
      ,
      update:
      url: serviceBaseUrl + "/UpdateLostProperty",
      type: "POST",
      dataType: "json"
      ,
      destroy:
      url: serviceBaseUrl + "/DeleteLostProperty",
      type: "DELETE",
      dataType: "json"
      ,
      ,
      requestEnd: onRequestEnd,
      pageSize: 20,
      schema:
      model:
      id: "PropertyId",
      fields:
      //PropertyId: type: "number", nullable: true ,
      PropertyName: type: "string", editable: true, validation: required: true ,
      CategoryName: type: "string", editable: true, validation: required: true ,
      PropertyDescription: validation: required: false ,
      //Image: validation: required: false ,
      FoundDate: type: "date", format: '0:dd-MM-yyyy' ,
      FoundLocation: editable: true, validation: required: false


      ,
      );


      $("#manageLostPropertiesGrid").kendoGrid(
      dataSource: lostPropertyDataSource,
      pageable: true,
      height: 550,
      toolbar: ["create"],
      columns: [
      // command: text: "View Photo", click: showPhoto , title: " ", width: "180px" ,
      field: "PropertyName", title: "Property Name", width: "150px" ,
      field: "CategoryName", title: "Category", editor: propertyCategoryList, width: "150px",
      field: "PropertyDescription", title: "Description", width: "200px" ,
      field: "FoundDate", type: "date", title: "Found Date", format: "dd/MM/yyyy", template: "#= kendo.toString(kendo.parseDate(FoundDate, 'dd-MM-yyyy'), 'dd/MM/yyyy') #", width: "130px" ,
      field: "FoundLocation", title: "Found Location", width: "120px" ,
      command: ["edit", "destroy"], title: "&nbsp;", width: "250px" ],
      editable: "popup"
      ).data("kendoGrid");

      function onRequestEnd(e)
      if (e.type != "read")
      e.sender.read();



      function propertyCategoryList(container, options)
      $('<input name="' + options.field + '"/>')
      .appendTo(container)
      .kendoDropDownList(
      autoBind: true,
      dataTextField: "CategoryName",
      dataValueField: "CategoryName",
      valuePrimitive: false,
      autoBind: true,
      dataSource:
      transport:
      read: serviceBaseUrl + "/GetPropertyCategories",


      );

      );


      The view model has got other data but the date is getting a null value even a date is entered in the grid.



      enter image description here



      And the data posted from the client side can be seen from the browser:



      enter image description here



      The question is how to send the date to the server side from Kendo Grid?










      share|improve this question














      I am having an issue with Kendo grid pop up editor not sending date data to the server side.



      Please see the code below:



      JavaScript:



      $(document).ready(function () 
      var serviceBaseUrl = "@Request.Url.ToString()",
      lostPropertyDataSource = new kendo.data.DataSource(
      transport:
      create:
      url: serviceBaseUrl + "/AddLostProperty",
      type: "POST",
      dataType: "json",
      ,
      read:
      url: serviceBaseUrl + "/GetLostProperties",
      type: "GET",
      dataType: "json",
      contentType: 'application/json; charset=utf-8',
      ,
      update:
      url: serviceBaseUrl + "/UpdateLostProperty",
      type: "POST",
      dataType: "json"
      ,
      destroy:
      url: serviceBaseUrl + "/DeleteLostProperty",
      type: "DELETE",
      dataType: "json"
      ,
      ,
      requestEnd: onRequestEnd,
      pageSize: 20,
      schema:
      model:
      id: "PropertyId",
      fields:
      //PropertyId: type: "number", nullable: true ,
      PropertyName: type: "string", editable: true, validation: required: true ,
      CategoryName: type: "string", editable: true, validation: required: true ,
      PropertyDescription: validation: required: false ,
      //Image: validation: required: false ,
      FoundDate: type: "date", format: '0:dd-MM-yyyy' ,
      FoundLocation: editable: true, validation: required: false


      ,
      );


      $("#manageLostPropertiesGrid").kendoGrid(
      dataSource: lostPropertyDataSource,
      pageable: true,
      height: 550,
      toolbar: ["create"],
      columns: [
      // command: text: "View Photo", click: showPhoto , title: " ", width: "180px" ,
      field: "PropertyName", title: "Property Name", width: "150px" ,
      field: "CategoryName", title: "Category", editor: propertyCategoryList, width: "150px",
      field: "PropertyDescription", title: "Description", width: "200px" ,
      field: "FoundDate", type: "date", title: "Found Date", format: "dd/MM/yyyy", template: "#= kendo.toString(kendo.parseDate(FoundDate, 'dd-MM-yyyy'), 'dd/MM/yyyy') #", width: "130px" ,
      field: "FoundLocation", title: "Found Location", width: "120px" ,
      command: ["edit", "destroy"], title: "&nbsp;", width: "250px" ],
      editable: "popup"
      ).data("kendoGrid");

      function onRequestEnd(e)
      if (e.type != "read")
      e.sender.read();



      function propertyCategoryList(container, options)
      $('<input name="' + options.field + '"/>')
      .appendTo(container)
      .kendoDropDownList(
      autoBind: true,
      dataTextField: "CategoryName",
      dataValueField: "CategoryName",
      valuePrimitive: false,
      autoBind: true,
      dataSource:
      transport:
      read: serviceBaseUrl + "/GetPropertyCategories",


      );

      );


      The view model has got other data but the date is getting a null value even a date is entered in the grid.



      enter image description here



      And the data posted from the client side can be seen from the browser:



      enter image description here



      The question is how to send the date to the server side from Kendo Grid?







      jquery asp.net-mvc kendo-ui kendo-grid kendo-datepicker






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 27 at 4:09









      Salomon ZhangSalomon Zhang

      1,2002 gold badges17 silver badges28 bronze badges




      1,2002 gold badges17 silver badges28 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          Try posting the date in another format. You can use parameterMap to change the format:



          transport: 
          // ...
          parameterMap: function (data, type)
          if (type != "read")
          data.FoundDate = kendo.toString(data.FoundDate, "dd/MM/yyyy");

          return data;







          share|improve this answer

























          • The data type of FoundDate in the ViewModel is DateTime?.

            – Salomon Zhang
            Mar 27 at 22:57











          • Yes the data type of FoundDate in the view model should be DateTime?.

            – Martin D.
            Mar 28 at 12:27










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369673%2fkendo-ui-for-jquery-grid-date-not-posting-to-the-server-side%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Try posting the date in another format. You can use parameterMap to change the format:



          transport: 
          // ...
          parameterMap: function (data, type)
          if (type != "read")
          data.FoundDate = kendo.toString(data.FoundDate, "dd/MM/yyyy");

          return data;







          share|improve this answer

























          • The data type of FoundDate in the ViewModel is DateTime?.

            – Salomon Zhang
            Mar 27 at 22:57











          • Yes the data type of FoundDate in the view model should be DateTime?.

            – Martin D.
            Mar 28 at 12:27















          0














          Try posting the date in another format. You can use parameterMap to change the format:



          transport: 
          // ...
          parameterMap: function (data, type)
          if (type != "read")
          data.FoundDate = kendo.toString(data.FoundDate, "dd/MM/yyyy");

          return data;







          share|improve this answer

























          • The data type of FoundDate in the ViewModel is DateTime?.

            – Salomon Zhang
            Mar 27 at 22:57











          • Yes the data type of FoundDate in the view model should be DateTime?.

            – Martin D.
            Mar 28 at 12:27













          0












          0








          0







          Try posting the date in another format. You can use parameterMap to change the format:



          transport: 
          // ...
          parameterMap: function (data, type)
          if (type != "read")
          data.FoundDate = kendo.toString(data.FoundDate, "dd/MM/yyyy");

          return data;







          share|improve this answer













          Try posting the date in another format. You can use parameterMap to change the format:



          transport: 
          // ...
          parameterMap: function (data, type)
          if (type != "read")
          data.FoundDate = kendo.toString(data.FoundDate, "dd/MM/yyyy");

          return data;








          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 27 at 18:47









          Martin D.Martin D.

          9251 gold badge14 silver badges23 bronze badges




          9251 gold badge14 silver badges23 bronze badges















          • The data type of FoundDate in the ViewModel is DateTime?.

            – Salomon Zhang
            Mar 27 at 22:57











          • Yes the data type of FoundDate in the view model should be DateTime?.

            – Martin D.
            Mar 28 at 12:27

















          • The data type of FoundDate in the ViewModel is DateTime?.

            – Salomon Zhang
            Mar 27 at 22:57











          • Yes the data type of FoundDate in the view model should be DateTime?.

            – Martin D.
            Mar 28 at 12:27
















          The data type of FoundDate in the ViewModel is DateTime?.

          – Salomon Zhang
          Mar 27 at 22:57





          The data type of FoundDate in the ViewModel is DateTime?.

          – Salomon Zhang
          Mar 27 at 22:57













          Yes the data type of FoundDate in the view model should be DateTime?.

          – Martin D.
          Mar 28 at 12:27





          Yes the data type of FoundDate in the view model should be DateTime?.

          – Martin D.
          Mar 28 at 12:27








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55369673%2fkendo-ui-for-jquery-grid-date-not-posting-to-the-server-side%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript