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;
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: " ", 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.
And the data posted from the client side can be seen from the browser:
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
add a comment |
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: " ", 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.
And the data posted from the client side can be seen from the browser:
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
add a comment |
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: " ", 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.
And the data posted from the client side can be seen from the browser:
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
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: " ", 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.
And the data posted from the client side can be seen from the browser:
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
jquery asp.net-mvc kendo-ui kendo-grid kendo-datepicker
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
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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;
The data type ofFoundDate
in the ViewModel isDateTime?
.
– Salomon Zhang
Mar 27 at 22:57
Yes the data type ofFoundDate
in the view model should beDateTime?
.
– Martin D.
Mar 28 at 12:27
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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;
The data type ofFoundDate
in the ViewModel isDateTime?
.
– Salomon Zhang
Mar 27 at 22:57
Yes the data type ofFoundDate
in the view model should beDateTime?
.
– Martin D.
Mar 28 at 12:27
add a comment |
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;
The data type ofFoundDate
in the ViewModel isDateTime?
.
– Salomon Zhang
Mar 27 at 22:57
Yes the data type ofFoundDate
in the view model should beDateTime?
.
– Martin D.
Mar 28 at 12:27
add a comment |
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;
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;
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 ofFoundDate
in the ViewModel isDateTime?
.
– Salomon Zhang
Mar 27 at 22:57
Yes the data type ofFoundDate
in the view model should beDateTime?
.
– Martin D.
Mar 28 at 12:27
add a comment |
The data type ofFoundDate
in the ViewModel isDateTime?
.
– Salomon Zhang
Mar 27 at 22:57
Yes the data type ofFoundDate
in the view model should beDateTime?
.
– 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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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