or
Uncaught TypeError: Cannot set property 'en-US' of undefined kendo.core.js:472
kendo.cultures[
"en-US"
] = {
kendo.cultures = {
"en-US"
: {
function onSelectProvider(arg) {
$("#scheduler").filter = { field: "Idd", operator: "eq", value: arg.Text };
$("#scheduler").dataSource.read();
}
<!doctype html>
<
html
>
<
head
>
<
title
>Kendo UI Web</
title
>
<
link
href
=
"styles/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"styles/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"js/jquery.min.js"
></
script
>
<
script
src
=
"js/kendo.web.min.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"grid"
></
div
>
<
script
>
$(document).ready(function () {
var myDataSource = new kendo.data.DataSource({
transport: {
read: {
url: "people.json",
dataType: "json"
}
}
});
$("#grid").kendoGrid({
dataSource: myDataSource,
columns: [
{
field: "firstName",
title: "First Name"
},
{
field: "lastName",
title: "Last Name"
}]
});
});
</
script
>
</
body
>
</
html
>
{
"people": [
{ "firstName":"John" , "lastName":"Doe" },
{ "firstName":"Anna" , "lastName":"Smith" },
{ "firstName":"Peter" , "lastName":"Jones" }
]
}
Name | Value
items[0][Name] | Name 1
items[0][Id] | a
items[1][Name] | Name 2
items[1][Id] | b
items[0].Name | Name 1
items[0].Id | a
items[1].Name | Name 2
items[1].Id | b
c.Bound(o => o.AddrIP).Width(120)
.ClientTemplate("<
a
href
=
'http://#= AddrIP #'
target
=
'_blank'
>#= AddrIP #</
a
> ")
c.Bound(o => o.AddrIP).Width(120)
.ClientTemplate("<
a
href
=
'http://#= AddrIP #'
target
=
'_blank'
><#= AddrIP #></
a
> ")
command: [{
name:
"return"
,
click: myHandler,
template:
'#= getCommandText(col1, col2) #'
}]
function
getCommandText(c1, c2) {
//return text based on values in this row
}
function
myHandler(e) {
//perform actions based on value in row
}