Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Child controls are lost on postback
posted

I recently converted from the AjaxControlToolKit web tab to the Infragistics Web Tab, version 11.1.20111.2020 and  I cannot figure out why my child controls are being lost on postback. These controls are not dynamic - they have been added to the designer. I removed all AJAX related code as a test (UpdatePanel, UpdateProgress) and I am still having the problem. The web tab's EnableViewState property is set to true.

Here is a single tab with an ultrachart. I have a button that will do a full postback (outside of this web tab) which updates the dataset with some filtered criteria. When I try to reference UltraChart1 in the Click event of the button I keep getting "Object Not set to Instance of an object", and sure enough the value of UltraChart1 is nothing. If I put UltraChart1 outside of the webtab, it works fine. Can you please tell me what I'm doing wrong, or what I need to add to the WebTab?

 

 

<ig:WebTab ID="tabReport" runat="server" Width="100%" Font-Size="Small" EnableViewState="true" EnableAjaxViewState="true">

 

 

<tabs>

 

 

<ig:ContentTabItem runat="server" Text="Graph">

 

 

<Template>

 

 

<igchart:UltraChart ID="UltraChart1" runat="server" ChartType="PieChart3D"

 

 

Version="11.1" Width="700px" Height="500px" BackgroundImageFileName="" Transform3D-Scale="100"

 

 

Transform3D-XRotation="54">

 

 

<Legend Visible="True" Location="Bottom"></Legend>

 

 

<Effects>

 

 

<Effects>

 

 

<igchartprop:GradientEffect />

 

 

</Effects>

 

 

</Effects>

 

 

<TitleTop Font="Microsoft Sans Serif, 14.25pt" HorizontalAlign="Center"

 

 

Text="Location Totals">

 

 

</TitleTop>

 

 

<ColorModel AlphaLevel="255" ColorBegin="Pink" ColorEnd="DarkRed"

 

 

ModelStyle="CustomLinear">

 

 

</ColorModel>

 

 

<PieChart3D PieThickness="15">

 

 

</PieChart3D>

 

 

<Axis>

 

 

<PE ElementType="None" Fill="Cornsilk" />

 

 

<X LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Near"

 

 

ItemFormatString="&lt;ITEM_LABEL&gt;" Orientation="Horizontal"

 

 

VerticalAlign="Center" Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" FormatString=""

 

 

HorizontalAlign="Near" Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</X>

 

 

<Y LineThickness="1" TickmarkInterval="10" TickmarkStyle="Smart"

 

 

Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Far"

 

 

ItemFormatString="&lt;DATA_VALUE:00.##&gt;" Orientation="Horizontal"

 

 

VerticalAlign="Center" Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" FormatString=""

 

 

HorizontalAlign="Far" Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</Y>

 

 

<Y2 LineThickness="1" TickmarkInterval="10" TickmarkStyle="Smart"

 

 

Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near"

 

 

ItemFormatString="&lt;DATA_VALUE:00.##&gt;" Orientation="Horizontal"

 

 

VerticalAlign="Center" Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="Gray" FormatString=""

 

 

HorizontalAlign="Near" Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</Y2>

 

 

<X2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart"

 

 

Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Far"

 

 

ItemFormatString="&lt;ITEM_LABEL&gt;" Orientation="Horizontal"

 

 

VerticalAlign="Center" Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="Gray" FormatString=""

 

 

HorizontalAlign="Far" Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</X2>

 

 

<Z LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart" Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Far"

 

 

ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center"

 

 

Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="DimGray" HorizontalAlign="Far"

 

 

Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</Z>

 

 

<Z2 LineThickness="1" TickmarkInterval="0" TickmarkStyle="Smart"

 

 

Visible="False">

 

 

<MajorGridLines AlphaLevel="255" Color="Gainsboro" DrawStyle="Dot"

 

 

Thickness="1" Visible="True" />

 

 

<MinorGridLines AlphaLevel="255" Color="LightGray" DrawStyle="Dot"

 

 

Thickness="1" Visible="False" />

 

 

<Labels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near"

 

 

ItemFormatString="" Orientation="Horizontal" VerticalAlign="Center"

 

 

Visible="False">

 

 

<SeriesLabels Font="Verdana, 7pt" FontColor="Gray" HorizontalAlign="Near"

 

 

Orientation="Horizontal" VerticalAlign="Center">

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</SeriesLabels>

 

 

<Layout Behavior="Auto">

 

 

</Layout>

 

 

</Labels>

 

 

</Z2>

 

 

</Axis>

 

 

<Tooltips FormatString="&lt;ITEM_LABEL&gt;: &lt;DATA_VALUE:00.##&gt;" />

 

 

</igchart:UltraChart>

 

 

</Template>

 

 

</ig:ContentTabItem>

 

 

</tabs>

 

 

 

</ig:WebTab>

Parents
No Data
Reply
  • 7566
    posted

    Hello duncanhopewell,

     

    Thank you for posting this question in our community. I attached a sample that reproduces your scenario. Lease review the sample. In order to avoid this error you can handle the UltraChart_Load() event.

     

    Download and review the sample and let me know if you have any further questions with this matter.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

    WChart in Web tab.zip
Children