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

Allow cached ajax window content

2 Answers 205 Views
Window
This is a migrated thread and some comments may be shown as answers.
Casimodo
Top achievements
Rank 1
Casimodo asked on 03 Mar 2016, 08:57 PM

Hi,

currently a Kendo UI window loads its content with the ajax option "cache" being hard-coded to false.

It would be great if the cache behavior could be configurable in order to allow for:

1) being able to configure the cache and its duration/location on the server. E.g. I'm currently in active development my MVC view actions have different cache durations, based on how often I modify those.

2) avoiding to implement views that are cachable as an object. A cached kendo window object does not help when I'm changing pages. This is really not comparable to browser caching as described in (1).

3) avoiding to implement extra JS logic which takes care of reentrance. My dialogs are fire and forget. I destroy my windows on closing.

I added this suggestion: http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback/suggestions/12596730-allow-cached-ajax-window-content

Regards

Kasimier Buchcik

2 Answers, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 08 Mar 2016, 08:25 AM

Hello Casimodo,

The window is not caching its responses by default, but this can be overridden. The options that are passed to the refresh method will override any of the default options:

    dialog.refresh({ url: "/foo", cache: true });

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Casimodo
Top achievements
Rank 1
answered on 08 Mar 2016, 07:53 PM

Hi Alex,

thanks! This saves me a lot of headaches. I deleted the feature request from kendoui-feedback.

Regards,

Kasimier Buchcik

Tags
Window
Asked by
Casimodo
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Casimodo
Top achievements
Rank 1
Share this question
or