or
RadTreeView RadTreeView1 = (RadTreeView)Master.FindControl ("RadTreeView1");checkedCategories = RadTreeView1.CheckedNodes.Count;<%@ Page Language="C#" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrfix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title> <style type="text/css"> .rwLoading { background-image: none !important; } </style></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> <script type="text/javascript"> var loadingSign = null; var contentCell = null; function openRadWnd() { $find("<%=RadWindow1.ClientID %>").show(); } function OnClientShow(sender, args) { loadingSign = $get("loading"); contentCell = sender._contentCell; if (contentCell && loadingSign) { contentCell.appendChild(loadingSign); contentCell.style.verticalAlign = "middle"; loadingSign.style.display = ""; } } function OnClientPageLoad(sender, args) { if (contentCell && loadingSign) { contentCell.removeChild(loadingSign); contentCell.style.verticalAlign = ""; loadingSign.style.display = "none"; } } </script> <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="ChildPage.aspx" ShowContentDuringLoad="false" OnClientShow="OnClientShow" OnClientPageLoad="OnClientPageLoad" ReloadOnShow="true"> </telerik:RadWindow> <input type="button" id="btnOpen" value="Click once, close the window, and then click again - loading panel will not display correctly the second time" onclick="openRadWnd(); return false;" /> <div id="loading" style="border: solid 1px Red; width: 100px; height: 50px; display: none; text-align: center; margin: auto;"> Custom<br /> loading.... </div> </form></body></html><%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <script type="text/C#" runat="server"> protected void Page_Load(object sender, EventArgs e) { System.Threading.Thread.Sleep(3000); } </script> TEST CONTENT </form></body></html>