Filter error converting from aspnet to ajax aspnet

2 posts, 0 answers
  1. Sheepdog
    Sheepdog avatar
    72 posts
    Member since:
    Nov 2005

    Posted 18 Nov 2009 Link to this post

    I have a website that I am in the Process of converting from telerik aspnet controls to telerik ajax aspnet controls. Notice I said IN PROCESS, some of the pages still contain the old telerik controls.
    Also the website uses one master page, which I have converted completely over to ajax aspnet control.

    Now I have one page with a radtoolbar, and a radgrid with filters on certain columns. The filters were working properly when the old telerik aspnet radgrid and radtoolbar controls were on the page. now that I have switched them to ajax aspnet controls, the filter has stopped working, and now when i click on the filter icon i get the following java error.
    Message: '_data' is null or not an object  
    Line: 8879  
    Char: 2  
    Code: 0  
    URI: http://localhost/NewS/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afa29fa87-3646-4a1f-8f90-45263b4e63e9%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3a4cacbc31%3aed16cbdc%3a58366029%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289  
     
     

    here is the aspx page.

    <%@ Page Language="VB" MasterPageFile="~/MasterPages/FFE.master" AutoEventWireup="false" CodeFile="AdminStoreList.aspx.vb" Inherits="AdminStoreList" title="FFE - StoreList" %> 
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server">  
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="grdStores">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="grdStores" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
       
    <table width="100%">  
            <tr width="100%">  
            <td width="60%" style="height: 58px">  
                <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Italic="True" Font-Names="Arial" 
                    Font-Size="20px" ForeColor="#EE2E24" Height="20px" Width=99Text="Store List"></asp:Label> 
            </td> 
            <td width="40%" style="height: 58px">  
                <telerik:RadToolbar ID="RadToolbar1" runat="server" AutoPostBack="True">  
                <Items> 
                    <telerik:RadToolbarButton runat="server" ImageUrl="Images/add_page_green.gif" Text="Add Record" 
                     CausesValidation="False" ToolTip="Add New Store" CommandName="Add"  /> 
                    <telerik:RadToolBarSplitButton runat="server"></telerik:RadToolBarSplitButton> 
                    <telerik:RadToolbarButton runat="server" ImageUrl="Images/help.gif" Text="Help" 
                        CausesValidation="False" CommandName="Help" /> 
                    <telerik:RadToolBarSplitButton runat="server"></telerik:RadToolBarSplitButton> 
                    <telerik:RadToolbarButton runat="server" ImageUrl="~/Images/open.gif" 
                        Text="Export" CausesValidation="False" CommandName="Export"  /> 
                </Items> 
                </telerik:RadToolbar> 
            </td> 
            </tr> 
        </table> 
        <telerik:RadGrid ID="grdStores" runat="server" DataSourceID="SQL1_StoreList" Font-Names="Arial" Font-Size="11px" 
         AllowFilteringByColumn="True" AllowSorting="True" GroupingEnabled="False" ShowDesignTimeSmartTagMessage="False" GridLines="None" AllowPaging="True" PageSize="100">  
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="SQL1_StoreList"   
            AllowCustomSorting="True" BorderColor="Gray" BorderWidth="0px" GridLines="Both" AllowFilteringByColumn="True">  
                <Columns> 
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Select" ImageUrl="~/images/pencil1_sm50.gif" 
                        Text="Select" UniqueName="column">  
                    </telerik:GridButtonColumn> 
                    <telerik:GridBoundColumn DataField="Store Type" HeaderText="Type" SortExpression="Store Type" 
                        UniqueName="Store Type" AllowFiltering="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ID" Visible=False DataType="System.Int32" HeaderText="ID" ReadOnly="True" 
                        SortExpression="ID" UniqueName="ID" AllowFiltering="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Projected Open" DataType="System.DateTime" HeaderText="Projected Open" 
                        SortExpression="Projected Open" UniqueName="Projected Open" AllowFiltering="False">  
                        <ItemStyle Width="40px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Actual Open" DataType="System.DateTime" HeaderText="Actual Open" 
                        SortExpression="Actual Open" UniqueName="Actual Open" AllowFiltering="False">  
                        <ItemStyle Width="40px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"   
                    UniqueName="Name" AllowFiltering="true" DataType="System.String" FilterListOptions="VaryByDataType" ShowFilterIcon="true" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="StoreNbr" HeaderText="StoreNbr" SortExpression="StoreNbr" 
                        UniqueName="StoreNbr" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Address" HeaderText="Address" SortExpression="Address" 
                        UniqueName="Address" AllowFiltering="False" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="City" HeaderText="City" SortExpression="City" UniqueName="City" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Zip" HeaderText="Zip" SortExpression="Zip" UniqueName="Zip" AllowFiltering="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Zone" HeaderText="Zone" SortExpression="Zone" UniqueName="Zone" AllowFiltering="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Dist" HeaderText="Dist" SortExpression="Dist" UniqueName="Dist" > 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Dead Deal" DataType="System.DateTime" HeaderText="Dead Deal" 
                        SortExpression="Dead Deal" UniqueName="Dead Deal" AllowFiltering="False" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Builder" HeaderText="Builder" SortExpression="Builder" 
                        UniqueName="Builder" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="SqFt" DataType="System.Int32" HeaderText="SqFt" 
                        SortExpression="SqFt" UniqueName="SqFt" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Prelim Plans" DataType="System.DateTime" HeaderText="Prelim Plans" 
                        SortExpression="Prelim Plans" UniqueName="Prelim Plans" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Equip List Rvw" DataType="System.DateTime" HeaderText="Equip List Rvw" 
                        SortExpression="Equip List Rvw" UniqueName="Equip List Rvw" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Final Plan Rvw" DataType="System.DateTime" HeaderText="Final Plan Rvw" 
                        SortExpression="Final Plan Rvw" UniqueName="Final Plan Rvw" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Construction Start" DataType="System.DateTime" HeaderText="Construction Start" 
                        SortExpression="Construction Start" UniqueName="Construction Start" Visible="False">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="RE Coord" HeaderText="RE Coord" SortExpression="RE Coord" 
                        UniqueName="RE Coord" Visible="False">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <AlternatingItemStyle BackColor="#E0E0E0" /> 
            <ExportSettings ExportOnlyData="True" FileName="NewS_StoresExport" IgnorePaging="True" 
                OpenInNewWindow="True" /> 
        </telerik:RadGrid> 
         
        <asp:SqlDataSource ID="SQL1_StoreList" runat="server" ConnectionString="<%$ ConnectionStrings:cnFFE %>" 
            SelectCommand="spSEL_StoreList" SelectCommandType="StoredProcedure">  
            <SelectParameters> 
                <asp:Parameter Direction="ReturnValue" Name="RETURN_VALUE" Type="Int32" /> 
                <asp:SessionParameter DefaultValue="*" Name="prmZone" SessionField="JDAZone" Type="String" /> 
                <asp:SessionParameter DefaultValue="*" Name="prmDist" SessionField="JDADist" Type="String" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
    </asp:Content> 
     
     
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Nov 2009 Link to this post

    Hi Sheepdog,

    I already responded in the support thread you opened with regards to this subject. Here is a quote of my reply for further reference:

    From the stack trace of the error you receive it seems that the grid client object is not fully initialized due to some unknown reason. Does removing the RadScriptManager instance from your master page and using regular asp ScriptManager eliminates the exception? Do you get any javascript errors on initial load which might conflict with the proper client grid object initialization?

    Additionally, consider moving the RadAjaxManager to your master page and use RadAjaxManagerProxy inside the content page as illustrated on this example:

    http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultvb.aspx

    Let me know how it goes.

    Kind regards,
    Sebastian
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top