'_currentFilterTimeoutID' is null or not an object

10 posts, 0 answers
  1. larry reames
    larry reames avatar
    6 posts
    Member since:
    Feb 2010

    Posted 09 May 2011 Link to this post

    I have a RadGrid that is throwing the error  '_currentFilterTimeoutID' is null or not an object when a value is typed into the filter box.  If I remove FilterDelay, ther error does not occur though neither does the filter.

    Below is the radgrid with the RadWindow wrapper.
    <telerik:RadWindow ID="GLLookupWindow" runat="server" Behaviors="Close" Width="900" Height="700" OnClientClose="UnhideIframe_OnClientClose">
                 <ContentTemplate>
                    <asp:Button ID="hiddenButton" OnClientClick="return false;" runat="server" style="display:none" visible="false" />
                    <asp:Panel runat="server" ID="pnlGLLookup" Visible="true" TabIndex="-1">
     
                        <telerik:RadGrid AutoGenerateColumns="False" ID="GLLookup" OnItemCommand ="GLLookup_ItemCommand" AllowFilteringByColumn ="true" OnItemCreated="GLLookup_ItemCreated" EnableLinqExpressions="false"
                        DataSourceID="SqlDataSourceGLLookupwindow" AllowSorting="true" runat="server" PagerStyle-AlwaysVisible="true" AllowPaging="true" PageSize ="20">
                            <GroupingSettings CaseSensitive="false" />
                            <MasterTableView DataKeyNames="GCMGRP,GCACCT,GCSACT,GCDEPT,GCDESC"  AutoGenerateColumns="false" AllowFilteringByColumn="True" >
     
                             <PagerStyle Mode="NumericPages" PageButtonCount="10" />
                                <Columns>
                                    <telerik:GridBoundColumn SortExpression="GCMGRP" HeaderText="Major" DataField="GCMGRP" UniqueName="GCMGRP" HeaderButtonType="TextButton"
                                        AllowFiltering="true" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="false" ShowFilterIcon="false" FilterDelay="4000"
                                        HeaderStyle-VerticalAlign="Bottom" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"/>
     
     
                                    <telerik:GridBoundColumn HeaderText="Acct" DataField="GCACCT" UniqueName="GCACCT" AllowFiltering="true"
                                        SortExpression="GCACCT" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                        HeaderStyle-VerticalAlign="Bottom"
                                        CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="false" ShowFilterIcon="false" FilterDelay="4000" />
                                    <telerik:GridBoundColumn HeaderText="Sub" DataField="GCSACT" UniqueName="GCSACT" AllowFiltering="true"
                                        SortExpression="GCSACT" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                        HeaderStyle-VerticalAlign="Bottom"
                                        CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="false" ShowFilterIcon="false" FilterDelay="4000" />
                                     <telerik:GridBoundColumn HeaderText="Dept/Loc" DataField="GCDEPT" UniqueName="GCDEPT" AllowFiltering="true"
                                        SortExpression="GCDEPT" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                        HeaderStyle-VerticalAlign="Bottom"
                                        CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="false" ShowFilterIcon="false"  FilterDelay="4000" />
                                     <telerik:GridBoundColumn HeaderText="Description" DataField="GCDESC" UniqueName="GCDESC" AllowFiltering="true"
                                        SortExpression="GCDESC" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                        HeaderStyle-VerticalAlign="Bottom"
                                        CurrentFilterFunction="Contains" AutoPostBackOnFilter="false" ShowFilterIcon="false" FilterDelay="4000" />
                                </Columns>
                                <ItemStyle Wrap="false" />
                                   <PagerStyle Mode="NumericPages" AlwaysVisible="true">
                                   </PagerStyle>
                            </MasterTableView>
                            <ClientSettings EnablePostBackOnRowClick="true" >
                            </ClientSettings>
                       </telerik:RadGrid>
                       <asp:Button ID="clrFilters" runat="server" Text="Clear filters" OnClick="clrFilters_Click" />
                    </asp:Panel>
                 </ContentTemplate>
                </telerik:RadWindow>

    AHIA,
    LarryR....
  2. larry reames
    larry reames avatar
    6 posts
    Member since:
    Feb 2010

    Posted 11 May 2011 Link to this post

    UPDATE - When I click on the paging buttons at the bottom of the grid, then in the filter box, I do not receive the error
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 12 May 2011 Link to this post

    Hello larry,

    I cannot reproduce this error you are getting. I am attaching the test page I used that is based on the markup you have posted. Try to reproduce this issue in it and let me know what steps we need to take so that we can reproduce it too.

    Veli
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Rafy Perez
    Rafy Perez avatar
    5 posts
    Member since:
    Nov 2009

    Posted 21 Jun 2011 Link to this post

    HI Veli,
    I have the same error in all of my grids. We either get  ( '_currentFilterTimeoutID' is null or not an object ) or ( 'null' is null or not an object ) messages depending if a put a value in the filter box or not. It looks like happens after the first postback.
    We implemented the filters a year ago and they were fine. We recently updated to version 2011.1.519.35.

    Any help will be greatly appreciated.
    Thanks,
    Rafael

  6. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 22 Jun 2011 Link to this post

    Hi Rafael,

    Can you try to repro this in the test page I attached previously? It would be very helpful for us trying to identify the cause of this issue.

    Veli
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  7. Rafy Perez
    Rafy Perez avatar
    5 posts
    Member since:
    Nov 2009

    Posted 22 Jun 2011 Link to this post

    Veli,
    I just submitted a support ticket with the visual studio solution reproducing the error.
    Thank you,
    Rafael
  8. larry reames
    larry reames avatar
    6 posts
    Member since:
    Feb 2010

    Posted 22 Jun 2011 Link to this post

    Rafel,

    Please post the solution to your support ticket to this thread so I can know what the solution is....

    Thanks,
    LarryR...
  9. Rafy Perez
    Rafy Perez avatar
    5 posts
    Member since:
    Nov 2009

    Posted 22 Jun 2011 Link to this post

    Larry,

    Sorry for the misunderstanding, I meant to say that I was able to reproduce the error and that I sent the visual studio solution to telerik team for revision.

    Hopefully they will get back to us with a resolution pretty soon.

    Regards,

    Rafael

  10. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 23 Jun 2011 Link to this post

    Hi,

    I am re-posting the reply from the ticket in this thread:

    Thank you for the test project. The reason for this error is the way your user control gets re-initialized on postback. You are recreating your user control in Page_Load. This point in the page life cycle is too late for re-initializing dynamic controls. Controls created programmatically need to be recreate in the Init phase of the page. If I change the Page_Load to Page_Init, the error is gone. The relation of this issue to the javascript error you are getting is that, because ViewState cannot be properly restored to your user control (and to RadGrid inside), the control cannot properly manage its state. The result is that the client-side script is not able to find the GridTableView client object that is responsible for applying the filter as you type. Hence the null reference error, indicating the GridTableView object is null and its _currentFilterTimeoutID field cannot be evaluated.


    Greetings,
    Veli
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  11. Rafy Perez
    Rafy Perez avatar
    5 posts
    Member since:
    Nov 2009

    Posted 24 Jun 2011 Link to this post

    Hi Veli, thank you for your response.
    The way we need it is not working by using Page_Init.
    I just sent you a new test project for your revision. 
    Thanks,
    Rafael
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017