Hi
i'm using a Kendo UI Grid (Version: 2014.2.716.545) within a ASP .NET MVC 5 Project to bind XML Data from a local hosted Webservice. The following example works fine with IE 10, but not with Firefox, IE 11, etc.
<script type="text/javascript">
$(document).ready(function () {
$("#systemLogs").kendoGrid({
dataSource: {
transport: {
read: {
url: 'http://localhost:9000/api/Home/GetSystemLogs")'
},
dataType: "xml",
},
schema: {
model: {
id: "LogId",
fields: {
Date: { type: "date" },
Level: { type: "string" },
Message: { type: "string" },
}
}
},
pageSize: 10
},
height: 400,
sortable: false,
pageable: false,
columns: [
{
field: "Date",
title: "Date",
format: "{0:dd.MM.yyyy HH:mm}",
width: 150,
},
{
field: "Level",
title: "Level",
width: 50,
},
{
field: "Message",
title: "Message",
width: 300,
}
]
});
});
</script>
I always getting the Errormessage "[object Object]". What's wrong with my Javascript Code ?
i'm using a Kendo UI Grid (Version: 2014.2.716.545) within a ASP .NET MVC 5 Project to bind XML Data from a local hosted Webservice. The following example works fine with IE 10, but not with Firefox, IE 11, etc.
<script type="text/javascript">
$(document).ready(function () {
$("#systemLogs").kendoGrid({
dataSource: {
transport: {
read: {
url: 'http://localhost:9000/api/Home/GetSystemLogs")'
},
dataType: "xml",
},
schema: {
model: {
id: "LogId",
fields: {
Date: { type: "date" },
Level: { type: "string" },
Message: { type: "string" },
}
}
},
pageSize: 10
},
height: 400,
sortable: false,
pageable: false,
columns: [
{
field: "Date",
title: "Date",
format: "{0:dd.MM.yyyy HH:mm}",
width: 150,
},
{
field: "Level",
title: "Level",
width: 50,
},
{
field: "Message",
title: "Message",
width: 300,
}
]
});
});
</script>
I always getting the Errormessage "[object Object]". What's wrong with my Javascript Code ?