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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Font Awesome icons

Thread ID:





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

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 12:57 PM UTC

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 06:32 AM UTC

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 10:31 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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