or
<
table
class
=
"k-widget k-editor k-header"
cellspacing
=
"4"
cellpadding
=
"0"
style
=
"width: 0px; height: 0px;"
>
<
textarea
id
=
"editor"
rows
=
"10"
cols
=
"30"
data-bind
=
"value: Notes"
></
textarea
>
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
$("#editor").kendoEditor();
});
</
script
>
{
"person"
:[{
"address"
:
"Address1"
,
"name"
:
"Person1"
},{
"address"
:
"Address2"
,
"name"
:
"Person2"
},{
"address"
:
"Address3"
,
"name"
:
"Person3"
}]}
$(document).ready(
function
() {
$(
"#grid"
).kendoGrid({
dataSource: {
transport: {
read: {
url: myURLFunc(),
dataType:
"json"
}
},
schema: {
model: {
fields: {
name: {},
address: {}
}
}
}
},
height: 250,
sortable:
true
,
columns: [
{
field:
"name"
,
title:
"Person"
},
{
field:
"address"
,
title:
"Address"
}
]
});
});
When creating a listview without specifying a template (ok, not very real situation, but still....) you get an error
In this lines:
that.template = kendo.template(options.template ||
""
);
that.altTemplate = kendo.template(options.altTemplate || options.template);
The second line should be:
that.altTemplate = kendo.template(options.altTemplate || options.template ||
""
);
Regards, Jaap
Which is the problem?, it seems to be loading the second culture or my browser localization.<script type="text/javascript"> kendo.culture("en-GB"); </script> cultures.current Object { name="en-GB" ... calendars ... patternsObject { d="dd/MM/yyyy" WRONG