HI I have asp.net mvc application with below telerik grid whcih i want to bind with asp.net webapi hosted on IIS. i can't find any ecample where to put the webapi url and how weapi's controller is invoked. please help in responding to this
@(Html.Kendo().Grid<TelerikMvcApp131.Models.DeviceDetailsChild>()
.Name("webapi_grid")
.Columns(columns =>
{
columns.Bound(p => p.person).Title("ID").Width(100);
columns.Command(command => { command.Edit(); command.Destroy(); }).Width(200);
})
.ToolBar(tools =>
{
tools.Create();
})
.Sortable()
.Pageable()
.Filterable()
.DataSource(dataSource =>
dataSource
.WebApi()
.Model(model =>
{
model.Id(p => p.Network);
})
.Events(events => events.Error("error_handler"))
.Read(read => read.Url(Url.HttpRouteUrl("DefaultApi", new { controller = "product" })))
)
)
Where should i define DefaultApi inside asp.net mvc application (note DefaultApi is defined inside webapi already)