Posted on Jan 10, 2012 (permalink)
var myPane = $find("<%= ExploreSlidingZone.ExpandedPaneId%>");
var treeView = myPane.controls[0];
Reply
You can directly reference the treeview inside the RadSlidingPane without the need to reference the zone or the sliding pane itself, e.g as shown below:
var
treeview = $find(
"<%=RadTreeView1.ClientID %>"
);
foreach (XmlNode xn in xnList)
{
// Create a new sliding pane
RadSlidingPane leftSlidingPane = new RadSlidingPane();
leftSlidingPane.Title = xn["label"].InnerText;
leftSlidingPane.Overlay = true;
leftSlidingPane.MinWidth = 50;
leftSlidingPane.Width = 300;
ExploreSlidingZone.Items.Add(leftSlidingPane);
// Create radtree
RadTreeView MyTree = new RadTreeView();
MyTree .OnClientNodeClicking = "ClientNodeClicking";
MyTree .ShowLineImages = true;
MyTree .NodeExpand += new RadTreeViewEventHandler(RadPopulateNode);
// add the root TreeNode
RadTreeNode ExploreRootNode = new RadTreeNode(" " + xn["label"].InnerText);
MyTree .Nodes.Add(ExploreRootNode);
ExploreRootNode.Toggle();
// Add treeview to sliding pane
leftSlidingPane.Controls.Add(myTree);
}
newNode.ExpandMode = TreeNodeExpandMode.ServerSideCallBack;
newNode.PostBack = false;
Posted on Jan 12, 2012 (permalink)
myPane = $find(
"<%= ExploreSlidingZone.ExpandedPaneId%>"
contentElement = myPane.getContentContainer();
treeViewWrapper = $telerik.$(
"#"
+ contentElement.id +
" > .RadTreeView"
).get(0);
treeView = treeViewWrapper.control;
Back to Top
[ ASP.NET Splitter Features | Documentation | Demos | Telerik TV | Self-Paced Trainer | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF, Silverlight, Windows Forms and Windows Phone. Visual Studio productivity tools. Reporting and data layer solutions.
HTML5 / JavaScript tools for Web and Mobile applications
Functional, Performance, Load and Mobile Software Testing
CMS, Mobile Web, Ecommerce, Emarketing, Social Media
Project management software inspired by Agile best practices
It seems you haven't bookmarked any pages. Fix that by clicking the button below