0

I have created tabs using kendo tabs in below format. Now I want to create tabs inside the div and show partial views for each tab by calling a controller action and pass two parameters to that controller action that returns the partial view with its model data. I have checked so many solutions but could get a right solution which would solve my requirement. Can anyone help.

<ul>
    @foreach(var item in model)
        {
            <li>
                @item.DocumentVersion
            </li>
        }
</ul>
@foreach(var Document in model)
        {
            <div>
                <p>
                    @Document.Details
                </p>
                </br>
                <span>
                    @Document.File
                </span>
            </div>
        }
peak
  • 105,803
  • 17
  • 152
  • 177
  • So do that...and post that if it does not work. i.e. **calling a controller action and pass two parameters to that controller action that returns the partial view with its model data.** - search "Partial View MVC" I would think – Mark Schultheiss Apr 07 '17 at 21:00
  • @MarkSchultheissam hello .. its not about calling the controller action and passing parameters.I need to achieve tat in my tab view. I dont know how I can achieve that and landed up here. – user7721524 Apr 07 '17 at 21:04
  • http://stackoverflow.com/questions/16656073/action-returning-partial-view-and-model – Mark Schultheiss Apr 07 '17 at 21:05
  • And HERE for how to pass parameters http://stackoverflow.com/questions/6549541/how-to-pass-parameters-to-a-partial-view-in-asp-net-mvc – Mark Schultheiss Apr 07 '17 at 21:07
  • I know doing that i.e calling controller action and returning partial view. But I dont know how to do it to render the view in the tabs content – user7721524 Apr 07 '17 at 21:09
  • Put that IN there? Render it there... – Mark Schultheiss Apr 07 '17 at 21:10
  • Like in my question you could see the tabs i have created. There should be list items and corresponding
    to each
  • which would be the content to each tab and it does not load on click. It loads data for all the div when the page loads. how am i supposed to render the partial view inside that div wiout any event :(
– user7721524 Apr 07 '17 at 21:16