Hello,
We are declining this request due to lack of interest and activity.
That said, additional information can be passed to the Controller by utilizing the Data() method:
Regards,
Viktor Tachev
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Thanks for clarifying. Note that you can specify the read transport option as a function, as explained in the API documentation (http://docs.telerik.com/kendo-ui/api/framework/datasource#configuration-transport.read). Thus you can specify $.ajax call and set headers via the headers attribute, or intercept the beforeSend event as depicted here: http://stackoverflow.com/questions/7686827/how-can-i-add-a-custom-http-header-to-ajax-request-with-js-or-jquery I'll forward your feedback for exposing this via the MVC data source wrapper to our devteam.
Nope.. Now i need to set manually in javascript grid.dataSource.transport.options.read.beforeSend = function (req) { req.setRequestHeader('Authorization', 'Basic abc:123');. I hope kendo mvc add 1 more helper in grid helper that can call beforesend
I assume you are talking about the jQuery ajax beforesend event here, is that correct? http://api.jquery.com/Ajax_Events/ And if so, can you clarify what prevents you from intercepting this event when making $.ajax calls?