[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Collapse]Tree List
   [Expand]Product Information
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Data Editing
    [Expand]Data Shaping and Manipulation
     Drag and Drop
    [Expand]Focus and Navigation
     Appearance Customization
     Save and Restore Client Layout
   [Expand]Visual Elements
   [Expand]Member Tables
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Appearance Customization

DevExpress offers you multiple ways to customize the appearance of an ASPxTreeList.

  • Cascading Style Sheet (CSS) Classes

    Use cascading style sheet (CSS) classes. CSS styles define how elements are rendered, and their position on the page. This provides you with centralized control over the appearance of several controls, or the entire web site. The ASPxTreeList ships with predefined presets themes. You can also create your own themes.

  • Built-in Styles

    The ASPxTreeList provides multiple styles, so you can customize the appearance of individual elements, and manage the tree list's overall appearance. These styles can be accessed via the ASPxTreeList.Styles property. The styles used to paint the pager can be accessed via the ASPxTreeList.StylesPager property.

    Tree list columns provide their own styles used to paint their headers (TreeListColumn.HeaderStyle), data and footer cells (TreeListColumn.CellStyle and TreeListColumn.FooterCellStyle), etc. These styles override the corresponding styles of an ASPxTreeList.

  • Conditional Formatting

    Allows you to customize the appearance of individual cells and/or nodes. In this instance, you should handle the ASPxTreeList.HtmlDataCellPrepared and/or ASPxTreeList.HtmlRowPrepared events, and specify style settings used to paint required cells and/or nodes. For an example, see How to: Implement Conditional Formatting.

Is this topic helpful?​​​​​​​