Rad LIstbox css class names

3 posts, 1 answers
  1. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 16 Sep 2014 Link to this post

    I have a Rad Listbox which is having some of its styles (mainly the background color) messed up when placed inside a certain container of my page. I assume it is because the Listbox css is inheriting from some custom css classes in the container. This is odd since I doubt very much if any of my style classes are named anything like rlb, or whatever prefix you use for your style class definitions. In any case, I would think your styles would also have !important syntax to prevent them from being overridden. In any case, is there any way I can prevent this? Its hard to tell which of my custom css classes are being attributed to the rad listbox.
  2. Answer
    Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    539 posts

    Posted 19 Sep 2014 Link to this post

    RadListBox uses UL, LI, SPAN / A and LABEL elements (the last one is in the checkboxes scenario).

    It's not impossible for a generic selector that targets a / span / li elements to have higher specificity than the styles in RadListBox.

    Of course, this is just a wild guess. To know for sure, we'll need to see the actual page with the actual computed styles.

    Regards,
    Ivan Zhekov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Albert Shenker
    Albert Shenker avatar
    550 posts
    Member since:
    Mar 2004

    Posted 19 Sep 2014 in reply to Ivan Zhekov Link to this post

    ok, then there must be a direct style declaration on the page somewhere. I'll have to go and dig it up. Thanks.
Back to Top