This question is locked. New answers and comments are not allowed.
I have recently been working with using a grid for a user management portion of an application that I am working on. I have implemented to such that when a user click's on a user from the grid a modal window will open. All of this is functioning as intended - however inside of the new modal window I am trying to add a TabStrip - which is where I am encountering problems.
The TabStrip is contained in a partial view that populates a div contained within the modal window. The code below might help to clarify (this was simply to demonstrate the issue - so don't mind any lack of best practices :) )
The Window code - the WindowContent div is the div that will be populated with the Tabstrip.
The JavaScript function that populates the div with the content of the partial view "Test/Edit"
Finally the Tabstrip code :
The Modal Window will open as intended - however no content is displayed inside of it. I tested the partial view by simply using Test - and it populated without issue. I am just curious as to where I may have issues - and how I might go about resolving them.
Thanks everyone,
Rion
The TabStrip is contained in a partial view that populates a div contained within the modal window. The code below might help to clarify (this was simply to demonstrate the issue - so don't mind any lack of best practices :) )
The Window code - the WindowContent div is the div that will be populated with the Tabstrip.
<% Html.Telerik().Window() .Name("Window") .Title("Edit User") .Visible(false) .Modal(true) .Content(() => {%> <div id="WindowContent" style="width: 450px; height: 300px;"> </div> <%}) .Buttons(buttons => buttons.Close()) .Width(450) .Height(300) .Render(); %>The JavaScript function that populates the div with the content of the partial view "Test/Edit"
function Edit(username) { var window = $("#Window").data("tWindow"); window.center(); $("#windowContent").load("Test/Edit", { userName: username }); window.open(); }Finally the Tabstrip code :
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<TestingModal.Models.User>" %> <div id="TabbedContent" style="width: 400px; height: 250px;"><% Html.Telerik().TabStrip() .Name("TabStrip") .Items(tabstrip => { tabstrip.Add() .Text("Account") .Content(() => { %> <p>Account Information</p> <%}); tabstrip.Add() .Text("Security") .Content(() => {%> <p>Security Information</p> <%}); tabstrip.Add() .Text("Roles") .Content(() => {%> <p>Roles Information</p> <%}); }) .SelectedIndex(0) .Render(); %></div>The Modal Window will open as intended - however no content is displayed inside of it. I tested the partial view by simply using Test - and it populated without issue. I am just curious as to where I may have issues - and how I might go about resolving them.
Thanks everyone,
Rion