Aspxtreelist data binding and application of template and appearance customization

Source: Internet
Author: User
Tags bind

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.