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

Best Practices

2 Answers 87 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Trent
Top achievements
Rank 1
Trent asked on 31 Jul 2013, 04:44 AM
Hi all,

I am looking for some best practice ideas before diving in. We have an existing ASP.Net MVC app which we will be providing a mobile front end for. We'll be using the Kendo mobile controls in an ASP.Net MVC project. Here are the questions I have so far:

1. Is it best to create a new ASP.Net MVC project for the mobile view, or so you keep them in the same project and then in the _Layout page check for mobile?
2. Is it best to put the app init in the _Layout page? (I'm talking about this script: var app = new kendo.mobile.Application();)

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 31 Jul 2013, 10:40 AM
Hello Trent,

I'll try to address your questions in the order you put them:

  1. ASP.NET MVC 4 features mobile views within the same MVC project, hence you can take advantage of this new functionality to build the mobile version of your site. Additionally, if more convenient you can utilize the ASP.NET MVC server wrappers for Kendo UI Mobile introduced in the recent Q2'13 release. See samples in the demos and documentation
  2. You can either put the mobile app initialization in the _Layout page, or create a separate _MobileLayout and set it there. For reference, see how this is done in the Examples\Areas\razor\Views\Shared\_MobileLayout.cshtml file of the local Kendo UI MVC demos coming with the distribution.
Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Trent
Top achievements
Rank 1
answered on 31 Jul 2013, 11:46 AM
Thanks Sebastian - good advice.
Tags
General Discussions
Asked by
Trent
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Trent
Top achievements
Rank 1
Share this question
or