We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Font Awesome icons

Thread ID:





131453 Jul 10,2017 05:17 PM Jul 17,2017 06:31 AM ASP.NET MVC 3
Tags: TreeView
Bernard Jurlina
Asked On July 10, 2017 05:17 PM

I have a database bound treeview like this

    .TreeViewFields(s => s.Datasource((IEnumerable<Form.Models.Menu>)ViewBag.dsMenu)
    .ClientSideEvents(evt => evt.NodeClick("onNodeClick"))

and I want to have one new field for the icons. Is there some example how can I do this with Font Awesome icons? Or maybe ejicons?


Ashokkumar Balasubramanian [Syncfusion]
Replied On July 12, 2017 08:57 AM

Hi Bernard, 
We have analyzed your query. We suspect that, you want to set the icon for each node. In our TreeView component, we have provided the “spriteCssClass” property, so you can use this property to set the icon for each node. Please check the below playground sample. 
Already we have discussed this kind of details in below forum, please check it. 
Please let us know, if the provided information’s are helpful to achieve your requirement or not. 
Ashokkumar B. 

Bernard Jurlina
Replied On July 15, 2017 02:32 AM

Thank You!

I made custom css and png for the icons and used that with spriteCssClass property, and it's working just fine.


Ashokkumar Balasubramanian [Syncfusion]
Replied On July 17, 2017 06:31 AM

Hi Bernard, 
We are glad to hear that your issue has been fixed. 
Please let us know if you need any further assistance. 
Ashokkumar B. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon