I am trying to add the UltraWebGrid control inside the tab container(AjaxControlToolkit). Page displays fine but whenever I do any kind of postback. I get this error in IE 6.0 browser:
<Sys.InvalidOperationException: Component 'ctl00_Main_TabContainer1' was not found.>
After first postback, any other operation occurr this error:
<Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.>
To show the error you will have to implement an postback event, like SelectedRowsChange of UltraWebGrid for example...
This is the application code:
<cc2:TabContainer ID="TabContainer1" Visible="true" Width="705" runat="server" ActiveTabIndex="0"> <cc2:TabPanel HeaderText="Mkt Features and Features" ID="TabPanel1" runat="server" ScrollBars="Vertical"> <HeaderTemplate> Mkt Features and Features </HeaderTemplate> <ContentTemplate> <div class="tabpanel-fields"> <div class="uicontrol"> <asp:Label ID="labMarketingFeature" runat="server" AssociatedControlID="ddlMarketingFeature" Text="Marketing Feature" /><br /> <asp:DropDownList ID="ddlMarketingFeature" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlMarketingFeature_SelectedIndexChanged"> </asp:DropDownList> </div> <div class="uicontrol"> <asp:Label ID="labFeature" Text="Feature" runat="server" AssociatedControlID="ddlFeature" /><br /> <asp:DropDownList ID="ddlFeature" runat="server"> </asp:DropDownList> </div> <div class="uicontrol"> <asp:Label ID="labSupportLevel" Text="Support Level" runat="server" AssociatedControlID="ddlSupportLevel" /><br /> <asp:DropDownList ID="ddlSupportLevel" runat="server"> </asp:DropDownList> </div> <div class="uicontrol" style="margin-top: 10px"> <asp:Button ID="btnAdd" runat="server" CssClass="standard-01" OnClick="btnAdd_Click" Text="Add"></asp:Button></div> </div> <br clear="all" /> <igtbl:UltraWebGrid ID="gvFeatures" runat="server" Width="686px" DataKeyField="FeatureId" OnInitializeRow="gvFeatures_InitializeRow" OnSelectedRowsChange="gvFeatures_SelectedRowsChange"> <Bands> <igtbl:UltraGridBand DataKeyField="FeatureId"> <Columns> <igtbl:UltraGridColumn BaseColumnName="FeatureId" Key="FeatureId" Hidden="True"> <ValueList DataMember="FeatureId" DisplayMember="FeatureId" Key="FeatureId"> </ValueList> <Header Caption="FeatureId"> </Header> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="MarketingFeature" Key="MarketingFeature" Width="220px"> <ValueList DisplayMember="MarketingFeature" Key="MarketingFeature" ValueMember="MarketingFeature"> </ValueList> <Header Caption="Marketing Feature"> <RowLayoutColumnInfo OriginX="1" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="1" /> </Footer> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="FeatureName" Key="FeatureName" Width="220px"> <ValueList Key="FeatureName" ValueMember="FeatureName"> </ValueList> <Header Caption="Feature"> <RowLayoutColumnInfo OriginX="2" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="2" /> </Footer> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="Inheritance" Key="Inheritance" Width="120px"> <ValueList DataMember="Inheritance" DisplayMember="Inheritance" Key="Inheritance" ValueMember="Inheritance"> </ValueList> <Header Caption="Inheritance"> <RowLayoutColumnInfo OriginX="3" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="3" /> </Footer> </igtbl:UltraGridColumn> </Columns> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowSortingDefault="OnClient" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="UltraWebGrid1" RowHeightDefault="20px" SelectTypeRowDefault="Extended" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" AutoGenerateColumns="False" NoDataMessage="No Data"> <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Width="686px" Height="250px"> </FrameStyle> <Pager MinimumPagesForDisplay="2"> <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </PagerStyle> </Pager> <EditCellStyleDefault BorderStyle="None" BorderWidth="0px"> </EditCellStyleDefault> <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </FooterStyleDefault> <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </HeaderStyleDefault> <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt"> <Padding Left="3px" /> <BorderDetails ColorLeft="Window" ColorTop="Window" /> </RowStyleDefault> <GroupByRowStyleDefault BackColor="Control" BorderColor="Window"> </GroupByRowStyleDefault> <GroupByBox> <BoxStyle BackColor="ActiveBorder" BorderColor="Window"> </BoxStyle> </GroupByBox> <AddNewBox> <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> </AddNewBox> <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject> <FilterOptionsDefault AllowRowFiltering="OnClient" FilterUIType="FilterRow"> <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" Height="300px" Width="200px"> <Padding Left="2px" /> </FilterDropDownStyle> <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White"> </FilterHighlightRowStyle> <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px"> <Padding Left="2px" /> </FilterOperandDropDownStyle> </FilterOptionsDefault> </DisplayLayout> </igtbl:UltraWebGrid><div class="mini-button-bar"> <asp:Button ID="btnRemove" runat="server" CssClass="standard-01" OnClick="btnRemove_Click" Text="Remove" /></div> <cc2:ConfirmButtonExtender runat="server" ID="removeConfirm" TargetControlID="btnRemove" ConfirmText="Are you sure that you want to remove?"> </cc2:ConfirmButtonExtender> <br clear="all" /> <div id="collapseDataObject" class="collapse-header"> <img alt="" id="ArrowDataObject" src="web/images/ico_arrow_01b.gif" /> <asp:Label ID="lblDataObject" runat="server" Text="Data Object Details"></asp:Label><em>(Select a item in the list above and click here to view details)</em> </div> <cc2:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="server" TargetControlID="Panel1" CollapseControlID="collapseDataObject" ExpandControlID="collapseDataObject" ImageControlID="ArrowDataObject" CollapsedImage="~/web/images/ico_arrow_01a.gif" ExpandedImage="~/web/images/ico_arrow_01b.gif" Enabled="True" ExpandedText="lblDataObject" CollapsedText="lblDataObject" Collapsed="False"> </cc2:CollapsiblePanelExtender> <asp:Panel ID="Panel1" runat="server"> <igtbl:UltraWebGrid ID="gvDataObjects" runat="server" OnInitializeRow="gvDataObjects_InitializeRow" Width="686px"> <Bands> <igtbl:UltraGridBand> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> </igtbl:UltraGridBand> </Bands> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowSortingDefault="OnClient" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortMulti" Name="UltraWebGrid1" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeRowDefault="Extended" StationaryMargins="Header" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00"> <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Width="686px"> </FrameStyle> <Pager MinimumPagesForDisplay="2"> <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </PagerStyle> </Pager> <EditCellStyleDefault BorderStyle="None" BorderWidth="0px"> </EditCellStyleDefault> <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </FooterStyleDefault> <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign="Left"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </HeaderStyleDefault> <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt"> <Padding Left="3px" /> <BorderDetails ColorLeft="Window" ColorTop="Window" /> </RowStyleDefault> <GroupByRowStyleDefault BackColor="Control" BorderColor="Window"> </GroupByRowStyleDefault> <GroupByBox> <BoxStyle BackColor="ActiveBorder" BorderColor="Window"> </BoxStyle> </GroupByBox> <AddNewBox> <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> </AddNewBox> <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject> <FilterOptionsDefault AllowRowFiltering="OnClient" FilterUIType="FilterRow"> <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px" Height="300px" Width="200px"> <Padding Left="2px" /> </FilterDropDownStyle> <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White"> </FilterHighlightRowStyle> <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px" CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px"> <Padding Left="2px" /> </FilterOperandDropDownStyle> </FilterOptionsDefault> </DisplayLayout> </igtbl:UltraWebGrid></asp:Panel> </ContentTemplate> </cc2:TabPanel>
On the server event. More especific the SelectedRowsChange event.
Thanks!
Are you doing a redirect or something on the server event?