asp.net 3.5

How to assign a set of images to the TreeView control in ASP.NET

The article: How to customize TreeNode object in ASP.NET describes the property ImageUrl you can use to set the image for a single node. You don’t need to use this approach, because you can use three TreeView properties to set images for all your nodes. You can choose the picture that is shown next to all …

Learn more

How to apply styles to the TreeView node levels in ASP.NET

In practice applying styles based on the node level is more useful than applying styles to different types of nodes (described in the article: How to apply styles to the TreeView node types in ASP.NET).  That is because most trees use a strict hierarchy (for example, the first level of nodes represents categories, the second level …

Learn more

How to apply styles to the TreeView node types in ASP.NET

You can control individually the styles for different types of the TreeView nodes – root nodes, nodes that contain other nodes, selected nodes, etc. You use the TreeView.NodeStyle property to apply node style settings to all the nodes of the tree. The next table lists more specific styles you can use to isolate individual regions of …

Learn more

How to manage the TreeView control appearance in ASP.NET

If you want to manage appearance of the TreeView control in your project you can use its style model. Styles are represented by the TreeNodeStyle class, which derives from Style class. As with other rich controls, the styles give you options to set background and foreground colors, fonts, and borders. The next table lists the node-specific …

Learn more

How to populate the TreeNode objects in ASP.NET in VB.NET

If your project has a large amount of data to display in a TreeView, you probably don’t want to fill it in all at once, because that increase the time taken to process the initial request for the page, and also increase the size of the page and the view state.  The TreeView includes a populate-on-demand …

Learn more

How to populate the TreeNode objects in ASP.NET in C#

If your project has a large amount of data to display in a TreeView, you probably don’t want to fill it in all at once, because that increase the time taken to process the initial request for the page, and also increase the size of the page and the view state.  The TreeView includes a populate-on-demand …

Learn more

How to use the TreeNode object in selection mode in ASP.NET in C#

You can use TreeNode in one of two modes:

– In selection mode, clicking the node posts back the page and raises the TreeView.SelectedNodeChanged event. This is default mode for all nodes.

– In navigation mode, clicking a node navigates to a new page, and the SelectedNodeChanged event is not raised. You …

Learn more

How to customize TreeNode object in ASP.NET

Each node in the TreeView control is represented by a TreeNode object. Every TreeNode has an associated piece of text, which is displayed in the tree. The TreeNode object provides navigation properties such as ChildNode (the collection of nodes it contains) and Parent (the containing node). The next table lists in details all the useful properties …

Learn more

How to use the TreeView navigation control in ASP.NET

You can use the TreeView control to render rich tree views and to fill portions of the tree on demand without refreshing the entire page. The control supports a wide range of styles which you can use to transform its appearance. You can fill a TreeView by binding to an ordinary data source or by creating the nodes …

Learn more