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

[Solved] Need help with integrating controls in site.master

1 Answer 37 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.
Andreas Kviby
Top achievements
Rank 1
Andreas Kviby asked on 17 Dec 2009, 11:20 PM
Hey
First of all thanks a superbundle, I have been waiting for this a long time and now I am in a project where the client demands tabs, panelstrips and and datagrids within asp.net mvc so the timing could not be better in any way.

My wish:
In the site.master page I want to add tabs at the top of my page instead of the HOME ABOUT and so on... I need this to be connected to the routes so when I type /company/ in the url I want to activate the companytab and show the index, edit, create or whatever action is type. If a tab is selected it should always show the indexaction by default.

On the indexpage I want the datagrid connected to the model to list records and also enable editing and deletion of records.

Then when I display a record, like companydetails I need to get the panelstrips in that page to show more stuff connected to that company.

I have a hard time to seamlesly integrate controls in site.master in a neat way with the routes and I know it is possible to do. I also have a hard time settings the active tab in some way dynamic and not static.

I dont know if it has to do with the fact that I need to add the ContentPlaceHolder "Main" to all tabs to be able to insert content from all views but it could be. It could also be the fact that all Views rendered back into a tab also inherits the site.master to everything is loaded again and again. I cant get the render Partial View to work.

Please help, I know this is a true superbundle I just need the kickstart lesson :)

Thanks in advance

Andreas Kviby

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 21 Dec 2009, 12:49 PM
Hello Andreas,

You can find attached a sample website that has a tabstrip instead of the regular menu, and it changes its selected index dynamically.

All the best,
Alex
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Andreas Kviby
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or