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

beforeSend for all requests

7 Answers 1272 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 18 Sep 2014, 01:12 PM
I currently have beforeSend implemented for all four transports (read, update, create and destroy) and they all make the same call. Is it possible to define beforeSend on the transport once so every request uses the same one.

7 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 22 Sep 2014, 07:30 AM
Hello Richard,

You may use the requestStart event of the DataSource which is executed for all transports.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Richard
Top achievements
Rank 1
answered on 29 Sep 2014, 04:05 PM
Thanks Alexander,

Is it possible to set module headers in the requestStart like I can in the beforeSend?
0
Kiril Nikolov
Telerik team
answered on 30 Sep 2014, 08:08 AM
Hello Richard,

I am afraid that in the requestStart event the module headers cannot be manipulated. The reason is that the requestStart event is an event that Kendo UI raises, and it is not the standard jQuery beforeSend event that holds information about the headers as well.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Joel
Top achievements
Rank 1
answered on 29 Aug 2018, 04:01 PM

Is there any documentation for the "beforeSend" event, I've been digging the API documentation but cannot find anything related to it.

 

 

Best Regards!!!

0
Joel
Top achievements
Rank 1
answered on 29 Aug 2018, 04:04 PM

Never mind....I found it.

 

 

Best Regards!!!

0
Joel
Top achievements
Rank 1
answered on 29 Aug 2018, 04:05 PM

Never mind, I've found it.

 

Best Regards!!!

0
Joel
Top achievements
Rank 1
answered on 29 Aug 2018, 04:07 PM

Never mind, I've found it.

 

Is one of this days, just had a brain fart issue.

 

Best regards!!!

Tags
Data Source
Asked by
Richard
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Richard
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Joel
Top achievements
Rank 1
Share this question
or