Hi Everyone!
Yesterday i started evaluationg KendoUI. I've created a html page showing a grid with a xml data source. Here's the code (sorry, but the 'Format Code Block Dialog' issn't working (FF8)).
------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<title>New HTML5 page</title>
<link href="kendoui/styles/kendo.common.min.css" rel="stylesheet" />
<link href="kendoui/styles/kendo.kendo.min.css" rel="stylesheet" />
<script src="kendoui/js/jquery.min.js"></script>
<script src="kendoui/js/kendo.all.min.js"></script>
</head>
<body>
<div id="grid"></div>
<script>
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: "../mssql/xml.php"
},
schema: {
type: "xml",
data: "/articles/article",
model: {
fields: {
number: "number/text()",
description: "description/text()",
}
}
}
}),
height: 500,
groupable: true,
filterable: true,
scrollable: {
virtual: true
},
sortable: true,
columns: [ {
field: "number",
width: 100,
title: "Artikelnummer"
} , {
field: "description",
width: 400,
title: "Bezeichnung"
}
]
});
});
</script>
</body>
</html>
--------------------------------------
All data from the data source is displayed correctly in the grid. BUT i can't sort the grid by clicking the column headers nor is the filter option displayed.
Is there anything wrong in my code? I've reviewed all examples and walkthroughs, but all use the same options for the grid like i do.
Please help :)
Regards,
Michael
Yesterday i started evaluationg KendoUI. I've created a html page showing a grid with a xml data source. Here's the code (sorry, but the 'Format Code Block Dialog' issn't working (FF8)).
------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<title>New HTML5 page</title>
<link href="kendoui/styles/kendo.common.min.css" rel="stylesheet" />
<link href="kendoui/styles/kendo.kendo.min.css" rel="stylesheet" />
<script src="kendoui/js/jquery.min.js"></script>
<script src="kendoui/js/kendo.all.min.js"></script>
</head>
<body>
<div id="grid"></div>
<script>
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: "../mssql/xml.php"
},
schema: {
type: "xml",
data: "/articles/article",
model: {
fields: {
number: "number/text()",
description: "description/text()",
}
}
}
}),
height: 500,
groupable: true,
filterable: true,
scrollable: {
virtual: true
},
sortable: true,
columns: [ {
field: "number",
width: 100,
title: "Artikelnummer"
} , {
field: "description",
width: 400,
title: "Bezeichnung"
}
]
});
});
</script>
</body>
</html>
--------------------------------------
All data from the data source is displayed correctly in the grid. BUT i can't sort the grid by clicking the column headers nor is the filter option displayed.
Is there anything wrong in my code? I've reviewed all examples and walkthroughs, but all use the same options for the grid like i do.
Please help :)
Regards,
Michael