TreeView

How to use the Menu navigation control in ASP.NET in VB.NET

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you can use:

 

Learn more

How to use the Menu navigation control in ASP.NET in C#

The Menu control like the TreeView control supports hierarchical data. You can bind the Menu to a data source, or you can fill it by hand (declaratively or programmatically) using MenuItem objects. The MenuItem objects don’t support check boxes and you can’t set programmatically their expanded/collapsed state. The next table lists MenuItem properties you can use:

 

Learn more

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