You can use the approach shown in the attached project. Please note that you need to add your logic that will determine whether to change the folder's icon or not.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items