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

.setDataSource in Internet Explorer Issue

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jarrod
Top achievements
Rank 1
Jarrod asked on 27 Oct 2015, 03:02 PM

In every browser  $("#Grid").data("kendoGrid").setDataSource(dataSource); triggers a change and reads when autoBind is set to true.

However, in IE - autoBind only ever seems to fire once. I can call .setDataSource but in IE it never triggers the read(). 

 Anyone know of a work around?

2 Answers, 1 is accepted

Sort by
0
Jarrod
Top achievements
Rank 1
answered on 28 Oct 2015, 08:04 PM
For anyone searching for answers to something similar - IE caches ajax responses if the parameters have not changed. Therefore you need to place an [OutputCache] attribute on the controller action to prevent IE from caching it.
0
Rosen
Telerik team
answered on 29 Oct 2015, 08:25 AM

Hello Jarrod,

We are glad that you have managed to solve the issue you were facing. Indeed, the IE will cache GET requests. Thus, you could change the type of the request to POST or disable the caching.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jarrod
Top achievements
Rank 1
Answers by
Jarrod
Top achievements
Rank 1
Rosen
Telerik team
Share this question
or