I have a basic WebTab with 4 tabs. I am trying to use a Placeholder in a tab that references an .ascx user control that has a simple non-editable WebDataGrid in it. The problem is the placeholder content is displayed AFTER the WebTab control, not in the approprate tab. Is there a special way to handle placeholders in a WebTab or can you not do this? Thanks much. I've reviewed the online samples, but they don't help with this issue. I am using IE8 and Visual Studio 2008 with Infragistics 10.3.20103.2134 controls.
Hello dbishop9,
I tried to reproduce this but it is working fine with Infragistics 10.3.20103.2134 and IE8. Here is what I tested:
Default.aspx
<ig:WebTab ID="WebTab1" runat="server" Height="200px" Width="300px">
<tabs>
<ig:ContentTabItem runat="server" Text="Tab 1">
<Template>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<uc1:WebUserControl ID="WebUserControl1" runat="server" />
</asp:PlaceHolder>
</Template>
</ig:ContentTabItem>
<ig:ContentTabItem runat="server" Text="Tab 2">
<asp:PlaceHolder ID="PlaceHolder2" runat="server">
<asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
</tabs>
</ig:WebTab>
…
WebUserControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs"
Inherits="WebUserControl" %>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="www.infragistics.com">Infragistics</asp:HyperLink>
Please tell me if I missed something
The WebUserControl has a webgrid that is bound dynamically depending upon the user's profile settigns. The control is programatically added to the placeholder on the host page in the code behind, rather than statically. The Page_Load method calls the SetTemplates method to load the following:
Dim myControl As New ControlmyControl = LoadControl("~/_TEMPLATES/GridTemplate.ascx")GridPlaceholder.Controls.Add(myControl)