C# .NET - Apply CSS for aspxTreelist - Asked By raj kumar on 10-May-12 07:56 AM

1.how to apply css for aspxtreelist in DevExpress
2.Text align Left for parent and child node for for aspxtreelist in DevExpress 

[)ia6l0 iii replied to raj kumar on 10-May-12 12:06 PM
There are multiple options.

a) To style the ASPXTreeList controls, you need to use the inbuilt style properties.  And also I read that you need to set the  EnableDefaultAppearance  property to true for these styles to render. 

b) You can also set the CSSFilePath to a valid css, where you can choose to override the default styles.

c) Also note that, you can apply the style properties from code-behind as well. 
new TreeListHeaderStyle () { 
BackColor = Color.LightBlue,
ForeColor = Color.Gray,

Hope this helps.
Somesh Yadav replied to raj kumar on 11-May-12 01:07 AM
hello try this,


Jitendra Faye replied to raj kumar on 11-May-12 01:13 AM
Ans 1:

YOu can simply use CssFilePath property.

like this-

Specify required ASPxTreeList's settings:


TRy this and let me know.