This is a migrated thread and some comments may be shown as answers.

Theming selection state for treeview items

1 Answer 72 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 24 Nov 2017, 07:40 PM

I have skinned my Treeview such that it has flat white icons and white text on a blue background.  I'd like them to invert colors for selection (blue on a white background).

Using Visual Style Builder, is it possible to get the icons to "invert" somehow when selected?  Or what is the best way to achieve this?  

If not, will I need to track selection myself and load "inverted" images at the appropriate time?

Thanks,

Dave

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Nov 2017, 02:03 PM
Hi Dave,

I would recommend you to open one of the predefined themes and examine how this is built there. You will notice that a single element can have different states and each state has different styles (see attached). Detailed information is available here: 
I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Treeview
Asked by
Dave
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or