question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use TabContainer in SharePoint 2013

See original GitHub issue

Hey! When I place a html table in tabPanel in SharePoint 2013, for some reason the table showing out of the tabPanel.

<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DocInfo.ascx.cs" Inherits="RSIT.OfficeWork.ControlTemplates.RSIT.OfficeWork.DocInfo" %>
<%@ Register Assembly="AjaxControlToolkit, Version=17.1.1.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


<ajaxToolkit:TabContainer runat="server" ActiveTabIndex="0" Width="100%">
    <ajaxToolkit:TabPanel runat="server" HeaderText="header1" ID="TabPanel1">
        <ContentTemplate>
            <table style="width: 100%;">
                <tr>
                    <td>1</td>
                    <td>sdf</td>
                    <td>66</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>scxv</td>
                    <td>55</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>cvbvnv</td>
                    <td>44</td>
                </tr>
            </table>
        </ContentTemplate>
    
</ajaxToolkit:TabPanel>


    <ajaxToolkit:TabPanel ID="TabPanel2" runat="server" HeaderText="header 2">
        <ContentTemplate>
            1        
        </ContentTemplate>    
    </ajaxToolkit:TabPanel>
</ajaxToolkit:TabContainer>

1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rusaymcommented, Mar 6, 2018

There is no problem, if you place “Info.ascx” control in application page, but I use “Info.ascx” control in another control (“MyControl.ascx” with renderingtemplete id=“CustomForm”), that is rendering template of my custom content type. So, adding styles doesn’t work in this situation. image To reproduce this problem, you have to set “NewFormTemplateName”, “DisplayFormTemplateName” and “EditFormTemplateName” values to “CustomForm” on one of your content type, using Sharepoint Manager. image Than try to create new item in list. image

1reaction
rusaymcommented, Mar 2, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

AJAXToolKit's TabContainer in SharePoint - MSDN - Microsoft
Hi All, I am trying to use TabContainer from inside a web part and the UI of the tabs is broken. I am...
Read more >
AJAX tabcontainer, User Control and Sharepoint UserProfile
Hi All, I am working on following requirement. There is AJAX control, tabcontainer which is added in a user control which inturn is...
Read more >
TabContainer not a known element - MSDN - Microsoft
Net application developed on VS2010 .Net 4.0 using Ajax TabContainer working perfectly. I tried to move the code to run under SharePoint ......
Read more >
TabContainer/TabPanel set focus to control on load ... - MSDN
I am using the Tabcontainer/Tab Panel for my ASP.NET application. On page load, I am setting the ActiveTabIndex to the first tab:.
Read more >
How to change tab panel of tab container programmatically on ...
i am having one tab container with two tab panel. ... Sunday, January 6, 2013 7:14 AM ... Use below code for respected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found