The error I get is the following:Provided field of type 'Infragistics.Web.UI.GridControls.GridField' cannot be added to the columns collection. Only BoundDataField or TemplateDataField fields are supported.
<div id="WebTab"> <asp:UpdatePanel ID="WebTabUpdatePanel" runat="server"> <ContentTemplate> <ig:WebTab ID="WebTab1" runat="server" Height="200px" Width="300px"> <AjaxIndicator Enabled="True" Location="MiddleCenter" /> <Tabs> <ig:ContentTabItem runat="server" Text="Tab 1"> </ig:ContentTabItem> </Tabs> <ContentPane> <RoundedBackground Enabled="true" /> </ContentPane> </ig:WebTab> </ContentTemplate> </asp:UpdatePanel> </div> <div id="push"></div> </div>
protected void AddNewTab(Infragistics.Web.UI.NavigationControls.DataMenuItemEventArgs e) { string usrCntrl = e.Item.Value.ToString(); if (!string.IsNullOrEmpty(usrCntrl)) { //add a new tab to the main WebTab control and load the target user control ContentTabItem ctab = new ContentTabItem(); ctab.UserControlUrl = usrCntrl; ctab.Text = e.Item.Text; WebTab1.Tabs.Add(ctab); WebTab1.SelectedIndex = WebTab1.Tabs.IndexOf(ctab); } }
Hello Anthony,
Let us know if you need further assistance with this.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support