problem with grid refresh

2 posts, 1 answers
  1. Markus
    Markus avatar
    14 posts
    Member since:
    Apr 2012

    Posted 30 May 2012 Link to this post

    Hi,

    I am having some problems when refreshing my grid view. I have a refresh button that calls refresh() from the grid documentation. It seems to do nothing. Then I tried sync() and read() but nothing seems to be actually refreshing my view of the grid information. Only when I filter the columns by clicking the column header is the change visible. When I click the header again the change disappears. Are there any cache settings here that may be getting in my way? Any help would be appreciated...

    ...
     dataSource : {
    // JSONP is required for cross-domain AJAX
        dataType : "jsonp",
        transport : {
              read : baseURL + "Data;jsessionid=" + jsessionId + "?browserid=" + browserId + "&type=2&tool=fooBar",
                    cache: false,
                    contentType: "application/json; charset=utf-8",
                    //
                    // add additional parameters here...
                    //
                    parameterMap : function(options, type) {
                        options.cafe_dataplugin = "dispo_ticket_list";
                        options.cafe_fields = ticketColumns;
                        return kendo.data.transports["odata"].parameterMap(options, type);
                    }
                },
    ...
  2. Answer
    Markus
    Markus avatar
    14 posts
    Member since:
    Apr 2012

    Posted 05 Jun 2012 Link to this post

    Hello again,


    figured out, that the cache problem caused by the server. I added the meta tag <meta http-equiv="cache-control" content="no-cache"/> and set in the response from server "response.setHeader("Cache-Control", "no-cache");".


    Best regards,


    Markus.
  3. Kendo UI is VS 2017 Ready
Back to Top