
| private void OpenTreeToNode(string nodeValue) |
| { |
| if (nodeValue.Length > 0) |
| { |
| FacilityBE facility = new FacilityBE(int.Parse(nodeValue)); |
| string valuePath = ""; |
| List<FacilityBE> ancestorFacilities = facility.GetAncestors(true); |
| foreach (FacilityBE ancestorFacility in ancestorFacilities) |
| { |
| if (ancestorFacility != ancestorFacilities[0]) |
| { |
| valuePath += "/"; |
| } |
| valuePath += ancestorFacility.ID.ToString(); |
| RadTreeNode node = Tree.FindNodeByValue(ancestorFacility.ID.ToString()); |
| node.Expanded = true; |
| this.FillChildNodes(node); |
| } |
| Tree.FindNodeByValue(nodeValue).Selected = true; |
| } |
| } |
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="ftb_test.aspx.cs" Inherits="Community_Forums_ftb_test" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadEditor ID="RadEditor" runat="server"></telerik:RadEditor>
</form>
</
body>
</
html>
<telerik:RadToolBar ID="RadToolBar1" Runat="server" Skin="Office2007"
Width="100px" Font-Size="Smaller">
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<Items>
<telerik:RadToolBarSplitButton runat="server"
Text="SplitButton 0" ImagePosition="Right" Width="100%">
<Buttons>
<telerik:RadToolBarButton runat="server" Text="a" >
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="abc" >
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="abcdef" >
</telerik:RadToolBarButton>
<telerik:RadToolBarButton runat="server" Text="abcdefgh" >
</telerik:RadToolBarButton>
</Buttons>
</telerik:RadToolBarSplitButton>
</Items>
</telerik:RadToolBar>