How to implement data binding for aspxtreelist in devexpress development controls, as well as template usage and appearance customization. To illustrate the problem, let's take a look at the following picture first.
Having understood this picture, we have raised a number of questions:
First, how to bind the data, display the hierarchy.
How to display different icons and content on different levels of nodes, where the four layers in the table view are using different icons. And in the first layer of organisation use the icon, the next layer is displayed text, and after the third layer has hyperlinks more display.
The logical value "true" and "false" of the check field in the view is replaced by the display with an icon.
Four, the Unit special view customization, here can be seen, in the numerical field field more than 90 of the background color with light blue display, the other in orange display.
Analysis: According to the tree chart above, no problem is an application of the aspxtreelist template. The entire effect is explained below.
Binding data: The Aspxtreelist can easily fill in the combination of data, any standard data source type, including: Sqldatasource,objectdatasource,xmldatasource,accessdatasource, SiteMapDataSource. You can also bind aspxtreelist other objects that represent the tree structure, or manually create a tree code.
e.g. create code manually