asp dropdownlist does not light up after raddecorator

4 posts, 0 answers
  1. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 10 Oct 2012 Link to this post

    Hi friends,

    Ours are the tab friendly customers, who just tabs off, and type/select.

    I have some asp drop down lists, and the decorator seems to be working pretty good except one thing, where they do not light-up (highlight) on focus, which sometimes confuses whether it has got the focus or not. Any workaround for this ?

    Thanks,
    -Aarsh
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 11 Oct 2012 Link to this post

    Hello,

    In order to beautify the elements it needs to add some HTML wrappers that we can style properly around (or sometimes instead of) the elements. Actually we remove the real select elements and replace it with unordered list, as we <select> is not to be styled, while we do not have problems to style <ul>. As after the decoration this is not a real HTML (select) tag it has some issues with keyboard support and we have done everything possible with regard to the many differences between the browsers. Currently navigation through the keyboard is supported in IE and you can use the up and down arrows to navigate through the options and enter or Alt+down to expand the dropdown. It is also not possible to change its style to look selected (i.e. the usual blue background) at this point. If a viable cross-browser solution is found we will incorporate it in the code. Please also note that the focused style varies between browsers - e.g. IE creates a dotted line, while FF adds a box that resembles a shadow around the buttons. All that being said - if keyboard support is extremely important for your site the best suggestion is to revert to a page without the FromDecorator, or to Skip just the Drop down decoration using ControlsToSkip property.

    Regards,
    Bozhidar
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 11 Oct 2012 Link to this post

    Sweet, our's is mainly IE only application. I was just wondering if we can do some CSS way on on-focus event ?
  5. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 11 Oct 2012 Link to this post

    Hi,

    The :focus element is supported for input elements, not LI elements as in the case of decorated dropdown. I tested in IE and you could browse the dropdown list item using keys and each selected item is highlighted with a different background than default one. We can not do things that browser does not allow us to do.

    All the best,
    Bozhidar
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
Back to Top