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

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현