Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 11th, 2005, 05:25 PM
Registered User
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing 'Expandable' property of TreeNode

Platform: Windows Forms
The MSDN has an article titled:
"HOW TO: Dynamically Add Nodes to a TreeView WebBrowser Control by Using Visual C# .NET".
The article exploits a property of the TreeNode control called 'Expandable'.
However, the property is available only for the Web Controls, and to my surprise I couldn't find it among the TreeNode Windows Forms properties.
This Expandable property is crucial if you want to develop a smart, dynamic tree view which doesn't load all the data at once, but does it automatically as the user requests to expand the node.
This is especially important if you want to bind the tree view to a database which can contain thousands of rows and you don't want to load all the nodes if the user doesn't even request it.
Without the Expandable property the node doesn't have the ability to expand if you don't feed the sub-nodes during the tree creation. In other words the node doesn't have the 'plus' box to trigger the 'Expand' request. If the subnodes are supposed to be provided only on the expand request, then you are stuck.
Is there any workaround for this problem?
Old March 11th, 2005, 10:19 PM
Friend of Wrox
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india

try this


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP: I need to Nest Controls in a TreeNode ctt ASP.NET 2.0 Professional 0 January 4th, 2008 06:02 PM
Need help to create expandable menu using tiles cheeky Java GUI 0 April 25th, 2007 03:14 AM
drag and drop a TreeNode Medes C# 2005 0 May 18th, 2006 01:40 PM
What is missing? grstad SQL Language 11 March 6th, 2006 01:53 AM
Expandable Variables goels Access VBA 1 October 1st, 2004 02:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.