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

Earn up to 30 extra points for answering this tough question.
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. 
sampleASPxTreeList.Styles.Header.Assign(
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,

http://blog.answermyquery.com/tag/aspxtreelist/

http://code.google.com/p/release-management-example/source/browse/trunk/RepresentativesSite/App_Themes/Aqua/ASPxTreeList.skin?r=2
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:

    ASPxTreeList.Styles.CssFilePath

TRy this and let me know.