Hi, I'm trying to add the Mobile Switch to a MVC 5 Web App but it is not rendering the switch widget, just a checkbox. Using the MVC Html wrapper, the HTML rendered is:
The css files that are included in my layout page are:
And the js files from my bundleconfig are:
6 Answers, 1 is accepted
One more thing. I tried this in a new Telerik MVC project created using the wizard and still get just a checkbox.
Thanks for the reply Iliana, however adding that stylesheet had no affect. I still on get a checkbox in both my main app, as well as the test Telerik MVC app that I created.
Here are all of the stylesheets loaded in the test app. Does the order make any difference?
Thank you for the details. Could you please make sure that the MobileSwitch is initialized within MobileView content and a mobile Layout is specified (documentation link)?
That was my problem. I thought that the mobile widgets no longer needed to be contained in a MobileView for normal web apps. When I initialize via JQuery, it renders as expected without the MobileView, but using the MVC wrapper it doesn't. I'll just use the adaptive rendering and initialize via JQuery.
Thanks for you help!