jQWidgets Forums

jQuery UI Widgets Forums Grid Internet Explorer caching grid content

Tagged: , ,

This topic contains 2 replies, has 2 voices, and was last updated by  sammydeveille 12 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Hi all,

    I am using the jqxGrid displaying the content of a SQL database using the Entity framework in an ASP.net MVC project.
    I have setup the grid to get data from the controller in JSON. The data source looks something like this:


    var source =
    {
    datatype: "json",
    datafields: [ ...... ],
    url: 'MyController/MyAction',
    .......
    };

    I was testing if the grid calls ‘MyAction’ when refreshing the page. And it does call it every time I refresh either Chrome or Firefox. With Internet Explorer, it only calls it once when opening the browser and seems to cache the content of the grid. It only calls again ‘MyAction’ when i clear IE’s cache.
    Well as you can imagine, i would like to get IE to get the actual data instead of caching this.
    Is there a way to particularly force the grid to get it everytime ?

    Thanks in advance


    Peter Stoev
    Keymaster

    Hi sammydeveille,

    Internet Explorer by default caches Ajax calls. To prevent that, you can set the ‘cache’ of the source object to false.

    Hope this helps.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Hi Stoev,

    Thanks for your reply, this worked.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.