This is a migrated thread and some comments may be shown as answers.

'_currentFilterTimeoutID' is null or not an object

9 Answers 82 Views
Filter
This is a migrated thread and some comments may be shown as answers.
larry reames
Top achievements
Rank 1
larry reames asked on 09 May 2011, 03:15 PM
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....

9 Answers, 1 is accepted

Sort by
0
larry reames
Top achievements
Rank 1
answered on 11 May 2011, 07:40 PM
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
0
Veli
Telerik team
answered on 12 May 2011, 09:07 AM
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.

0
Rafy Perez
Top achievements
Rank 1
answered on 22 Jun 2011, 03:14 AM
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

0
Veli
Telerik team
answered on 22 Jun 2011, 12:19 PM
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.

0
Rafy Perez
Top achievements
Rank 1
answered on 22 Jun 2011, 05:44 PM
Veli,
I just submitted a support ticket with the visual studio solution reproducing the error.
Thank you,
Rafael
0
larry reames
Top achievements
Rank 1
answered on 22 Jun 2011, 07:11 PM
Rafel,

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

Thanks,
LarryR...
0
Rafy Perez
Top achievements
Rank 1
answered on 23 Jun 2011, 03:24 AM

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

0
Veli
Telerik team
answered on 23 Jun 2011, 09:57 AM
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.

0
Rafy Perez
Top achievements
Rank 1
answered on 24 Jun 2011, 06:37 PM
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
Tags
Filter
Asked by
larry reames
Top achievements
Rank 1
Answers by
larry reames
Top achievements
Rank 1
Veli
Telerik team
Rafy Perez
Top achievements
Rank 1
Share this question
or