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:

Created:

Updated:

Platform:

Replies:

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

I have a database bound treeview like this

@(Html.EJ().TreeView("treeMenu")
    .TreeViewFields(s => s.Datasource((IEnumerable<Form.Models.Menu>)ViewBag.dsMenu)
        .Id("Id")
        .ParentId("ParentId")
        .Text("Text")
        .HasChild("Child")
    .ClientSideEvents(evt => evt.NodeClick("onNodeClick"))
    .ExpandOn("click")
    .EnablePersistence(true))

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?

Thanks!

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. 
 
Regards, 
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.

Regards,
Bernard.


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. 
 
Regards, 
Ashokkumar B. 


CONFIRMATION

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

or the page will be automatically redirected to 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

;