or
$(
"#CategorizeNow"
).click(
function
categorizing (e) {
e.preventDefault();
$.ajax({
url:
'@Url.Action("RunAutoCategorization", "Pattern")'
,
beforeSend:
function
() {
$(
"#CategorizeNow"
).addClass(
"k-state-disabled"
).html(
"Categorizing!"
);
},
success:
function
() {
$(
"#CategorizeNow"
).removeClass(
"k-state-disabled"
).html(
"Finished"
);
$(
"#CategorizeNow"
).kendoTooltip({
content:
"successfully finished"
,
position:
"top"
,
animation: {
close: {
effects:
"fade:out"
},
open: {
effects:
"fade:in"
,
duration: 1000
}
}
}).show($(
"#CategorizeNow"
));
}
});
});
this
.commandWindowClosing =
new
RelayCommand<CancelEventArgs>((args) =>
{
if
(!_closing)
{
args.Cancel =
true
;
RadWindow.Confirm(AppConstConfirmShutdown,
this
.RequestShutdown);
}
});
private
void
RequestShutdown(
object
sender, WindowClosedEventArgs e)
{
try
{
if
(e.DialogResult ==
true
)
{
// Do something
}
ModelUserProfile: kendo.data.Model.define({
id: "userId"
,fields: {
,firstName: { type: "string" }
,lastName: { type: "string" }
...
}
});
var datasource = new kendo.data.DataSource({
...
schema: {
model: ModelUserProfile
},
...
});
<
div
id
=
"show-userprofile"
data-role="view"
data-model="ModelUserProfile"
data-layout
=
"default"
>
...
</
div
>
<
script
id
=
"templateUserprofile"
type
=
"text/x-kendo-template"
>
...
<
div
data-bind
=
"visible: firstName"
>Vorname:</
div
>
...
</
script
>
# if (firstName) { # <
div
>Vorname:</
div
> # } #