This is a migrated thread and some comments may be shown as answers.

RadMenuItem CssClass RenderMode Mobile

3 Answers 116 Views
Menu
This is a migrated thread and some comments may be shown as answers.
dlogix
Top achievements
Rank 1
dlogix asked on 15 Oct 2016, 10:43 PM

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

3 Answers, 1 is accepted

Sort by
0
Magdalena
Telerik team
answered on 18 Oct 2016, 07:19 AM
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.
0
dlogix
Top achievements
Rank 1
answered on 18 Oct 2016, 04:30 PM

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

0
Magdalena
Telerik team
answered on 19 Oct 2016, 07:48 AM
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.
Tags
Menu
Asked by
dlogix
Top achievements
Rank 1
Answers by
Magdalena
Telerik team
dlogix
Top achievements
Rank 1
Share this question
or