Hi,
I am doing a POC for one of the project where I am required to show data in KendoUI Grid coming from WCF service.
I've tried to create a sample but seems like no luck.
I looked around but couldn't figure out exact working sample. I've created a sample application. In Default.aspx page I am trying to get data from a WCF service i.e. HTML5Service.svc residing withing the same project.
A simple call to service is done as shown below
When I make a call using simple HTMl5.html page it gets called. But when I am trying to make a call through kendoGrid's datasource it's not getting called.
A quick help will be highly appreciated. Since it help us to use kendoUI or not as our most of the business is dependent on WCF service.
Thanks!!
I am doing a POC for one of the project where I am required to show data in KendoUI Grid coming from WCF service.
I've tried to create a sample but seems like no luck.
I looked around but couldn't figure out exact working sample. I've created a sample application. In Default.aspx page I am trying to get data from a WCF service i.e. HTML5Service.svc residing withing the same project.
A simple call to service is done as shown below
../HTML5Service.svc/list
<!DOCTYPE html>
<
html
>
<
head
>
<
title
> Hello Kendo UI</
title
>
<
link
href
=
"Content/kendo/2012.3.1114/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"Content/kendo/2012.3.1114/kendo.default.min.css"
rel
=
"stylesheet"
/>
</
head
>
<
body
>
<
div
id
=
"employeesGrid"
></
div
>
<
script
src
=
"Scripts/jquery-1.8.3.min.js"
></
script
>
<
script
src
=
"Scripts/kendo/2012.3.1114/kendo.web.min.js"
></
script
>
<
script
>
$(function () {
$("#employeesGrid").kendoGrid({
dataSource: new kendo.data.DataSource({
transport: {
read: "../HTML5Service.svc/list"
}
})
});
});
</
script
>
</
body
>
</
html
>
A quick help will be highly appreciated. Since it help us to use kendoUI or not as our most of the business is dependent on WCF service.
Thanks!!