PostBack ID Null for AjaxManager

2 posts, 0 answers
  1. William
    William  avatar
    72 posts
    Member since:
    Jun 2011

    Posted 19 Oct 2011 Link to this post

    I'm getting an error: get_postBackElement().id' is null or not an object. This only occurs when I add in the RadAjaxManager, so I'm fairly sure it has something to do with that. This doesn't seem all that complicated. Am I missing something?

    ASPX 

        <telerik:RadAjaxManager ID="RadAjaxManager222" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Timer1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="improvementRadGrid" LoadingPanelID="improvementLoading" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
     
     
    <h1> Improvement Day Inventory </h1>
    <br />
     
    <telerik:RadAjaxLoadingPanel ID="improvementLoading" runat="server" />
    <telerik:RadGrid ID="improvementRadGrid" runat="server" AutoGenerateColumns="false" DataSourceID="inventoryDataSource">
        <MasterTableView>
            <Columns>
                <telerik:GridBoundColumn DataField="Description" HeaderText="Description" />
                <telerik:GridBoundColumn DataField="Count" HeaderText="Quanitity" HeaderStyle-Font-Bold="true" ItemStyle-Font-Bold="true" />
                <telerik:GridBoundColumn DataField="MinimumQuantity" HeaderText="Min" />
                <telerik:GridBoundColumn DataField="MaximumQuantity" HeaderText="Max" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
     
    <asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick" />
     
    <asp:SqlDataSource ID="inventoryDataSource" runat="server"
    ConnectionString="<%$ ConnectionStrings:AssetWhereConnectionString %>"
    SelectCommand="ImprovementDay" SelectCommandType="StoredProcedure"></asp:SqlDataSource>


    C#

    public void Timer1_Tick(object sender, EventArgs e)
    {
        improvementRadGrid.Rebind();
    }
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 24 Oct 2011 Link to this post

    Hello William ,

    Under which .NET version is the web site built? If it is .NET 4.0 can you try setting the Page ClientIDMode to AutoID and see if it makes any difference?

    Greetings,
    Iana Tsolova
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top