Allow cached ajax window content

3 posts, 1 answers
  1. Casimodo
    Casimodo avatar
    71 posts
    Member since:
    Mar 2015

    Posted 03 Mar Link to this post

    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. Answer
    Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 08 Mar Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Casimodo
    Casimodo avatar
    71 posts
    Member since:
    Mar 2015

    Posted 08 Mar in reply to Alex Gyoshev Link to this post

    Hi Alex,

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

    Regards,

    Kasimier Buchcik

Back to Top