You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code...
function addToOrder(e) {
var theLine = this.dataItem($(e.currentTarget).closest("tr"));
$.when(kendo.ui.ExtInputDialog.show({
title: theLine.title,
input: "1",
message: "Enter the Order Quantity",
required: true,
initialInput: "1" })
).done(function (response) {
if (response.button == "OK") {
console.log(kendo.format("{0} button clicked with input of: {1} for item {2}", response.button, response.input, theLine.no));
} else {
console.log(kendo.format("{0} button clicked", response.button));
}
});
e.preventDefault();
return false;
}
Changes I made to kendo.web.ext.js - added two lines to the bottom of ExtInputDialog
......
modal: true,
visible: false,
message: "",
required: false,
requiredCss: "k-ext-required",
initialInput: "" // added by Tom Andersen
}, options);
You can have a pre - populated suggestion:
Example code...
function addToOrder(e) {
var theLine = this.dataItem($(e.currentTarget).closest("tr"));
$.when(kendo.ui.ExtInputDialog.show({
title: theLine.title,
input: "1",
message: "Enter the Order Quantity",
required: true,
initialInput: "1" })
).done(function (response) {
if (response.button == "OK") {
console.log(kendo.format("{0} button clicked with input of: {1} for item {2}", response.button, response.input, theLine.no));
} else {
console.log(kendo.format("{0} button clicked", response.button));
}
});
}
Changes I made to kendo.web.ext.js - added two lines to the bottom of ExtInputDialog
......
modal: true,
visible: false,
message: "",
required: false,
requiredCss: "k-ext-required",
initialInput: "" // added by Tom Andersen
}, options);
......
The text was updated successfully, but these errors were encountered: