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

Combo box doesnt call the read function each time the page is loaded in IE

1 Answer 82 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 17 Sep 2013, 09:46 PM
in IE 8,9,10 (haven't tested anything lower) the read function only gets called once even if navigate back and then reopen the page. 

My data is partners are made up of properties. so in the property edit page i have a combobox that is filled with active partners(its a bit field) i have the read saying only grab active partners to fill the combobox. the first time you enter the property edit page for property 1 it calls the read and populates the combobox with partners 1, 2, 3. Now if you navigate away from that page and mark partner 1 as not active then go back to any property edit page property 1,2,3,4,5 the combobox still shows the now inactive partner 1. in chrome this works fine and it calls read again on page load and the dropdown only has 2,3 but in ie it never calls it again unless you hit refresh on the page. and even calling datasource.read in script doesnt call the read function again.

This is an issue with ie caching things and not pulling from the server (if you open f12 developer tools in ie and select 'Cache' and then 'Always refresh from server' it works just like chrome does)  but even when i turn on server filtering it never tries to repull. i have no idea how to fix this issue. I cant tell people visiting my site that they have to go into ie options and turn off caching.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Sep 2013, 12:29 PM
Hello Thomas,

You can prevent the browser from caching the requests by using the OutputCacheAttribute on the action methods:

[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
public ActionResult Read(..)
You could also use the jQuery ajaxSetup method to disable the caching for all requests.

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