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

problem with grid refresh

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 2
Markus asked on 30 May 2012, 12:30 PM
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);
                }
            },
...

1 Answer, 1 is accepted

Sort by
0
Accepted
Markus
Top achievements
Rank 2
answered on 05 Jun 2012, 12:45 PM
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.
Tags
Grid
Asked by
Markus
Top achievements
Rank 2
Answers by
Markus
Top achievements
Rank 2
Share this question
or