This is a migrated thread and some comments may be shown as answers.

Example typo or am I missing something? Type: "webapi"?

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 2
Iron
Christopher asked on 30 May 2017, 06:57 PM

I was following the example on the documentation here.

The code mentions setting the "type" of the datasource to "webapi", but when you do this you get a script warning: "Unknown DataSource transport type 'webapi'.".

...
        pageable: true,
        sortable: true,
        dataSource: {
            type: "webapi",
            transport: {
                read: {
...

 

Not sure if this a typo or just out of date.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 01 Jun 2017, 08:21 AM
Hello Christopher,

Thank you for reporting this.

The webapi type is intended to be used with the Kendo UI for ASP.NET MVC and it requires the kendo.aspnetmvc.min.js script file.


More information can be found in the following forum thread:

http://www.telerik.com/forums/kendoui-grid-with-webapi

I will update the documentation, that the mentioned file is required for this approach.

Additionally, I updated your Telerik points for bringing this to our attention.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
Tags
Grid
Asked by
Christopher
Top achievements
Rank 2
Iron
Answers by
Stefan
Telerik team
Share this question
or