RadMenuItem CssClass RenderMode Mobile

4 posts, 0 answers
  1. dlogix
    dlogix avatar
    5 posts
    Member since:
    Jan 2007

    Posted 15 Oct Link to this post

    I am using telerik asp.net version 2014.2.618.35

    I am using RadMenu which shows in Classic mode in desktop browser and in Mobile mode in mobile browser.

    I am adding items to RadMenu at runtime and setting the CssClass property of RadMenuItem. In Classic mode it adds the css class to anchor tag <a> whereas in Mobile mode it adds the css class to list item tag <li>.

    Is it possible to set the css class of anchor tag in Mobile mode?

    The reason for adding a css class ("animsition-link") is to use Animsition jquery plugin for animated page transitions.

    Thanks

  2. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 18 Oct Link to this post

    Hello,

    We are afraid that there is no such inbuilt functionality of the RadMenu control. If you would like to add class to the anchor tag in the mobile render mode, it is necessary to add it by your custom additional JavaScript.

    Regards,
    Magdalena
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. dlogix
    dlogix avatar
    5 posts
    Member since:
    Jan 2007

    Posted 18 Oct Link to this post

    Hello,

    Thanks, I will try by using custom Javascript.

    But it is odd behavior of RadMenu to apply same class to different elements in different render modes. Do the latest version works similarly and if yes will it be handled in the future release?

    Thanks

    Kashif

  5. Magdalena
    Admin
    Magdalena avatar
    421 posts

    Posted 19 Oct Link to this post

    Hello,

    Thank you for your feedback. Actually classic render mode is not developed any more, so we recommend to use lightweight. In this render mode a custom CSS class is applied to the <li> element as in the mobile render mode.

    Regards,
    Magdalena
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top