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

Kendo UI for Vue transport-read Function

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 07 Mar 2019, 06:28 PM

What are you meant to return from a transport-read Function?

I am trying to add an authorization header to a axios call.  Please help.  Please improve the documentation.  Thanks!

 

https://www.telerik.com/kendo-vue-ui/components/datasource/api/datasource/TransportProps/#toc-transport-read

transport-read String | Function

The configuration that is used when the data source loads data items from a remote service.
If the value of transport.read is a function, the data source invokes that function instead of jQuery.ajax.
If the value of transport.read is a string, the data source uses this string as the URL of the remote service.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 11 Mar 2019, 11:58 AM
Hello Matt,

You can find more details on how the Kendo DataSource operates and how to setup it in its JavaScript API here: https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/transport.read

Here you are also a topic discussing exactly the possibility to add authorization header: https://www.telerik.com/forums/how-to-set-authorization-header-for-transport-read#Ds6e3JkOXEKOB24yFTggcg

Regards,
Ianko
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or