Listview reads datasource only once in IE

3 posts, 0 answers
  1. Dave
    Dave avatar
    17 posts
    Member since:
    Jan 2009

    Posted 24 Sep 2012 Link to this post

    I have the following:

    @(Html.Kendo().ListView<CourseServiceModel.CourseSearchResult>(Model)
           .Name("CourseListView")
           .TagName("div")
           .ClientTemplateId("template")
           .DataSource(dataSource =>
           {
           dataSource.Read(read => read.Action("GetSearchedCourses", "SearchCourse").Data("getSortBy"));
           dataSource.PageSize(10);
       })
           .Pageable(x => x.PageSizes(true).Refresh(true).Info(true).PageSizes(new int[]{10,25,50}))
         )

    On the first time the page loads, the datasource is read as expected. On subsequent post the datasource does not get read, no ajax calls.

    Works fine in FF and Chrome only an issue in IE (8,9).

    Sounds like a caching issue but not sure where to start....

    The page navigation is <page to set search criteria> -> RedirectToRoute("Results") -> <Results (contains ListView)> 


  2. Dmitriy
    Dmitriy avatar
    3 posts
    Member since:
    Jan 2012

    Posted 23 Oct 2012 Link to this post

    IE cashes ajaxes, I think your promblem at this...
  3. Kendo UI is VS 2017 Ready
  4. Paul
    Paul avatar
    3 posts
    Member since:
    Jan 2011

    Posted 06 Dec 2012 Link to this post

    Add this (jQuery) line to your javascript file...

    $(document).ready(function ())
    {
    $.ajaxSetup({ cache: false });
    }

    This will turn off ajax caching in jQuery (and Kendo UI, which uses jQuery)
Back to Top