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

one page MVC project with 50 menu links

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
mohammed
Top achievements
Rank 1
mohammed asked on 28 May 2010, 02:27 PM

I am designing a SAAS based application on .net MVC 2 platform using telrik mvc controls.

Left menu panel, header and footer are common for all pages. I want to avoid loading these items on every single page. IN a sense I want to use AJAX at application level by refreshing content area ONLY on every click of menu item.

My questions:
1)Will this be accomplished by having controls of all virtual web pages on one page and then control their hide and show behavior depending on menu click? Is there any other better way?

2) What happens when we launch the app? Will it try to load all controls to client in one shot and hide it in background? OR will it load controls of default page and then fetch whatever is requested via AJAX?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 28 May 2010, 02:47 PM
Hello mohammed,

While such application design is possible with ASP.NET MVC I will not recommend it. It may get very complicated to load partial views with ajax and append them in the main page. Such an approach would also not be search engine friendly - crawlers will not be able to index the content. If I must implement it that way I would do this:
  1. Have all specific page implemented as a partial view
  2. When the user clicks a navigation item (menu item, treeview node etc) make an ajax request to an action method which renders the partial view.
  3. Append the returned HTML in the main page.
You can check the client side checkboxes example which demonstrates partial view loading with jquery.

Regards,
Atanas Korchev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
mohammed
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or