Clicking TreeView Node does not load page from cache

2 posts, 0 answers
  1. Richard
    Richard avatar
    8 posts
    Member since:
    Jul 2012

    Posted 10 May 2011 Link to this post

    Using normal link and even the JavaScript below, called in another function, will transfer the page to the new URL, and since caching is turned on, load it from the cache.  But clicking a node on the TreeView, although sending to the new page, will not use the cache, and the page loads from the server.

    Do you know how to explain this behavior or a work around?  This code was added as an attempt to override default behavior as a fix to this issue, but had no effect noticeable from the default behavior

    function OnClientNodeClicking(sender, eventArgs)
    {
        var node = eventArgs.get_node();
        var url = node.get_navigateUrl();
        if (url) window.location = url;       
        eventArgs.set_cancel(true);
    }
  2. Richard
    Richard avatar
    8 posts
    Member since:
    Jul 2012

    Posted 11 May 2011 Link to this post

    I have solved this issue, unrelated to telerik control involved.

    I was encrypting my query string, and it was generating multiple valid values, so not caching
Back to Top