friends, I must be missing something here please help.. Thanks
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<!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"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
telerik:RadTreeView
ID
=
"RadTreeView0"
runat
=
"server"
>
<
NodeTemplate
>
<
asp:HyperLink
ID
=
"HyperLink1"
runat
=
"server"
NavigateUrl
=
"http://www.bing.com"
>[ View ] </
asp:HyperLink
>
<%# DataBinder.Eval(Container, "Text") %>
</
NodeTemplate
>
</
telerik:RadTreeView
>
<
telerik:RadToolTipManager
ID
=
"ToolTipManager1"
runat
=
"server"
AutoTooltipify
=
"true"
ToolTipZoneID
=
"RadTreeView0"
Position
=
"TopCenter"
Animation
=
"Resize"
RelativeTo
=
"Element"
Title
=
"Employee Details"
HideEvent
=
"ManualClose"
ShowCallout
=
"false"
ContentScrolling
=
"Auto"
Width
=
"300px"
Height
=
"200px"
></
telerik:RadToolTipManager
>
</
div
>
</
form
>
</
body
>
</
html
>
using
Telerik.Web.UI;
public
partial
class
Default : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadTreeNode category1 =
new
RadTreeNode(
"Group1"
,
"Group1"
);
RadTreeNode Category1Node;
RadTreeNodeCollection radCollection =
new
RadTreeNodeCollection(category1);
for
(
int
i = 5 - 1; i >= 0; i--)
{
Category1Node =
new
RadTreeNode(i.ToString(), i.ToString());
category1.Nodes.Add(Category1Node);
}
RadTreeView0.Nodes.Add(category1);
RadTreeNode category2 =
new
RadTreeNode(
"Group2"
,
"Group2"
);
RadTreeNode category3 =
new
RadTreeNode(
"Group3"
,
"Group3"
);
RadTreeNode Category2Node;
radCollection =
new
RadTreeNodeCollection(category2);
for
(
int
i = 3 - 1; i >= 0; i--)
{
Category2Node =
new
RadTreeNode(i.ToString(), i.ToString());
category2.Nodes.Add(Category2Node);
}
RadTreeView0.Nodes.Add(category2);
RadTreeView0.Nodes.Add(category3);
}
}