Hello,
I have problem with simple grid binding from remote source.
Please any help? :(
test.php
test2.js
users.json
Best Regards!
I have problem with simple grid binding from remote source.
Please any help? :(
test.php
<
html
>
<
head
>
<!-- ========== JQuery + Kendo ========== -->
<
script
type
=
"text/javascript"
src
=
"../js/jQuery/jquery-1.6.2.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"../js/Kendo/kendo.all.min.js"
></
script
>
<
link
rel
=
"stylesheet"
href
=
"../css/Kendo/kendo.silver.min.css"
/>
<
link
rel
=
"stylesheet"
href
=
"../css/Kendo/kendo.common.min.css"
/>
<
script
type
=
"text/javascript"
src
=
"../js/test2.js"
></
script
>
</
head
>
<
body
>
<
div
id
=
"grid"
style
=
"height: 700px; background-color: gray;"
>
<
table
id
=
"tab"
>
<
tr
>
<
th
data-field
=
"FirstName"
>First Name</
th
>
<
th
data-field
=
"LastName"
>Last Name</
th
>
</
tr
>
</
table
>
</
div
>
</
body
>
</
html
>
test2.js
$(document).ready(
function
(){
var
ds =
new
kendo.data.DataSource({
transport: {
read: {
url:
"users.json"
}
}
});
$(
"#tab"
).kendoGrid({
dataSource: ds
});
});
users.json
{
"FirstName" : "Mirko", "LastName" : "Mitrovic",
"FirstName" : "Marko", "LastName" : "Nikolic"
}
Best Regards!