Show Loading Message while RadTreeView is being loaded

1 posts, 0 answers
  1. Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 17 Jul 2007 Link to this post


    RadControls version

    RadTreeView v6.x
    RadTreeView AJAX (Prometheus)
    Telerik.Web.UI 2007.3.1245
    .NET version

    Visual Studio version

    programming language

    browser support

    all browsers supported by RadControls

    This project shows how you can show a loading message while a large treeview data is being loaded on the page. Thus, the users will be aware that something is happening. This sample project does not use any ajax but a simple javascript approach:

    <script type="text/javascript">                  
    function pageLoad()   
        var treeDIV = document.getElementById("treeDIV");   = "visible";   
        var loadDIV = document.getElementById("loadDIV");   = "hidden";   
    <div id="loadDIV">   
        Loading Message       
    <div id="treeDIV" style="visibility:hidden">   
        <telerik:RadTreeView ID="RadTreeView1" runat="server"

    <div id="loadDIV"
            Loading Message      
        <div id="treeDIV" style="visibility:hidden"
               Runat="server" ... /> 
    <script type="text/javascript">                
        window.onload = function() 
            var treeDIV = document.getElementById("treeDIV"); 
   = "visible"
            var loadDIV = document.getElementById("loadDIV"); 
   = "hidden"

Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.