<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TelerikWebForm.aspx.cs" Inherits="TelerikWebForm" %>

<!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></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        function OnClientNodeClicking(sender, args) {
            var tree = $find("<%= RadTreeView1.ClientID %>");
            var selectedNode = tree.findNodeByText('Support');
            if (selectedNode != null) {
                window.setTimeout(function () { selectedNode.scrollIntoView(); }, 200);
            }
        }
    
    </script>
    <div  style="width:500px">
    <fieldset style="width:100%" >
        <telerik:RadTreeView runat="server" ID="RadTreeView1" Height="300px" Width="100%" 
            OnNodeExpand="RadTreeView_NodeExpand" OnClientNodeClicking="OnClientNodeClicking">
        </telerik:RadTreeView>
    </fieldset>
    </div>

    </form>
</body>
</html>
