Home - Forums-.NET - FlyTreeView (ASP.NET) - Style for Expand/Collapse Button

FlyTreeView (ASP.NET)

Technical support and KB related to the FlyTreeView control

This forum related to following products: FlyTreeView for ASP.NET

Style for Expand/Collapse Button
Link Posted: 19-May-2008 23:55
Is there an easy way to apply a css class or inline style to the expand/collapse buttons in the TreeView?

For instance, I would like to change the cursor to 'pointer' for the buttons to fit with the button styles in the rest of my application.
Link Posted: 21-May-2008 01:25
Not, a quite very easy, but anyway.
You can see the output of control rendering, it creates a style for image.

For example at http://www.9rays.net/asp.net_2/treeview/Demo_Office2003.aspx (according to FireBug debugger) it uses nrf0220-0 for expand/collapse images. You can simply create an additional style rule like:


    img.nrf0220-0 {cusror: pointer}



Alternatively, if you have control source code, you can simply modify its internal style for expand/collapse images.