On demand load noding animation icon stays visible

4 posts, 0 answers
  1. Joe Sixpack
    Joe Sixpack avatar
    6 posts
    Member since:
    Apr 2010

    Posted 08 Apr 2010 Link to this post

    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?
  2. Yana
    Admin
    Yana avatar
    4915 posts

    Posted 14 Apr 2010 Link to this post

    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.
  3. DAVE
    DAVE avatar
    19 posts
    Member since:
    Jun 2010

    Posted 01 Aug 2010 Link to this post

    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?
  4. Yana
    Admin
    Yana avatar
    4915 posts

    Posted 05 Aug 2010 Link to this post

    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
Back to Top