Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
845
igTree Backcolor
posted

Hello,

How do you change the backcolor of the igTree in MVC?

Thanks

Deon

  • 845
    Verified Answer
    posted

    I found the anwer - when defining it using Razor syntax, set the HTMLAttributes property as follows:

     

    @Html.Infragistics().Tree().HtmlAttributes(new System.Collections.Generic.Dictionary<string, object>() { { "class", "my-css-atrtibute" } })

     

    and set the colour in the "my-css-atrtibute" in your CSS