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

On demand load noding animation icon stays visible

3 Answers 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Joe Sixpack
Top achievements
Rank 1
Joe Sixpack asked on 09 Apr 2010, 04:09 AM
I have on demand loading of nodes working.  My app is using ASP.NET forms-based authentication.  When the user's ASP.NET session times out (default is 20 minutes) and the user attempts to expand a node then the "loading" animated icon appears and nothing happens.  If the user clicks on something else that actually posts back to the server then ASP.NET displays the login form and the user can resume using the app but the animation icon never disappears.

What can be done about this?

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 14 Apr 2010, 09:55 AM
Hello Joe,

You can try using OnClientNodePopulationFailed event  of the treeview in this case. If this doesn't help,  I suggest you use global.asax file and its Session_End event - you can redirect the page in its handler, for example.

Please let us know how it goes.

Greetings,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
DAVE
Top achievements
Rank 1
answered on 01 Aug 2010, 08:14 PM
I can't get the OnClientNodePopulationFailed method working.  The client-side event never seems to fire.  I'm using the sample from the help:

<script type="text/javascript">
function onClientNodePopulationFailedHandler(sender, eventArgs)
{
var node = eventArgs.get_node();
var errorMessage = eventArgs.get_errorMessage();

alert("Error: " + errorMessage);
eventArgs.set_cancel(true);
}
</script>

<telerik:RadTreeView ID="RadTreeView1"
runat="server"
OnClientNodePopulationFailed="onClientNodePopulationFailedHandler">
....
</telerik:RadTreeView>


I'm using the ServerSide expand mode on my nodes.

How long should it take for this event to be fired?
0
Yana
Telerik team
answered on 05 Aug 2010, 03:33 PM
Hello Dave,

Actually OnClientNodePopulationFailed event is fired only when ExpandMode is set to "ServerSideCallBack" or "WevService", so it is not suitable in your case. Please try the other approach with Session_End event.

Best wishes,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Joe Sixpack
Top achievements
Rank 1
Answers by
Yana
Telerik team
DAVE
Top achievements
Rank 1
Share this question
or