or
<button id=
'btn'
class=
'k-button'
data-nodeid=
'111'
>XYZ</button>
<div id=
'grid1'
></div>
var
rows = [
{
"one"
:
"1"
,
"two"
:
"21"
,
"three"
:
"31"
,
"nodeid"
:
' '
}
, {
"one"
:
"2"
,
"two"
:
"22"
,
"three"
:
"32"
,
"nodeid"
:
' '
}
, {
"one"
:
"3"
,
"two"
:
"23"
,
"three"
:
"33"
,
"nodeid"
:
'123'
}
, {
"one"
:
"4"
,
"two"
:
"24"
,
"three"
:
"34"
,
"nodeid"
:
' '
}
];
var
btnNodeid = $(
'#btn'
).data(
'nodeid'
);
$(
'#grid1'
).kendoGrid({
dataSource: rows
)}
var dsReviewList = new kendo.data.DataSource({
schema: {
data: "d",
model: {
fields: {
resID: { type: "number" },
resDate: { type: "string" },
description: { type: "string" },
amount: { type: "number" },
selected: { type: "boolean" },
total: { type: "number" }
}
}
},
transport: {
read: {
contentType: "application/json; charset=utf-8",
type: "POST",
dataType: "json",
url: "OWLV2be.asmx/GetReviewReservations",
success: function (data) {
alert(data);
},
error: function (xhr, error) {
console.debug(xhr); console.debug(error);
alert('error');
}
},
parameterMap: function (data, operation) {
return kendo.stringify(data);
}
},
});
<
div
id
=
"window"
>
Please provide an override password.
<
br
/>
<
br
/>
<
div
>
<
label
id
=
"lblPswd"
>Password: </
label
>
<
input
id
=
"txtOverride"
type
=
"text"
/>
</
div
>
<
br
/>
<
div
style
=
"text-align:center;"
>
<
input
id
=
"Text1"
type
=
"text"
/>
<
button
class
=
"k-button"
id
=
"btnOverride"
style
=
"width: 125px"
>OK</
button
>
</
div
>
</
div
>
//Window to allow users to add a password to override and approve.
var
overrideWindow = $(
"#window"
).kendoWindow({
height:
"200px"
,
title:
"Override Workflow Access"
,
visible:
false
,
modal:
true
,
width:
"300px"
}).data(
"kendoWindow"
);
//Another button on the page so that when users click it, the window opens and checks if they have access to approve. There is other functionality which I have removed for simplicity. Just need to make the input textbox editable. Btn in window works.
$(
"#btnApprove"
).click(
function
() {
var
window = $(
"#window"
).data(
"kendoWindow"
);
window.center();
window.open();
})
// create the window ON THE FLIES
$(
"<div></div>"
).kendoWindow({
visible:
true
,
title:
"Creates Window Out Of Thin Air"
,
modal:
true
,
width:
"400px"
,
content: { url:
"TestKendoWindow.aspx"
},
deactivate:
function
() {
this
.element.closest(
".k-widget"
).remove();
}
}).data(
"kendoWindow"
)
// set the content of the window
//.content("<h1>Acheivement UNLOCKED!</h1>")
.center()
.open();