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
380
Changing style of a webdropdown
posted

How do I change the style of a WebDropDown?

 

I try changing what looks like the related CSS classes in the file ig_DropDown.css in the ig_res folder but that doesn't work.  I try clearing my cache, resetting IIS, but the changes don't take even though is obviously looks like the place to go.

Parents
No Data
Reply
  • 24671
    Suggested Answer
    posted

    Hi,

    there are various ways. One of them is to change the CSS classes in ig_DropDown.css. Just to make sure the styles are not loaded from another location than the one you're trying to edit, you can load a page and check some image or style, and see from which location the styles are loaded.

    The second way to style it is to just define some CSS Class with the same name as the names defined in ig_dropDown.css - that is, you don't need to edit directly in ig_dropDown.css.

    The third way is to assign a class name (string) to the properties exposed in the control. For example for DropDownItem you have CssClass, SelectedCssClass, ActiveCssClass, and so on. This will enable you to style everything even from code behind dynamically.

    Hope it helps. Let me know if i can help you with anything else.

    Thanks,

    Angel 

Children