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

Clicking TreeView Node does not load page from cache

1 Answer 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 10 May 2011, 10:38 PM
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);
}

1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 11 May 2011, 02:47 PM
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
Tags
TreeView
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or