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

Filtering nested Grids

4 Answers 206 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 24 Feb 2011, 11:16 AM
I've created a nesting grid and filtering works at the top level but if I allow filtering by column on the detailed table I get the enclosed GridTableView control " does not have a naming container. I have no code behind, just all in the aspx
I guess I'm missing something? Any help much appreciated. Many thanks. Steve
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>
  
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:EnterpriseDevConnectionString2 %>" 
        SelectCommand="SELECT [Ref], [LineNum], [SKU], [Qty], [ActualQty], [ExportedQty], [Exported] FROM [InboundGoodsLines] WHERE ([Ref] = @Ref)">
        <SelectParameters>
            <asp:ControlParameter ControlID="RadGrid2" DefaultValue="Ref" Name="Ref" 
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:EnterpriseDevConnectionString2 %>" 
        SelectCommand="SELECT [Ref], [Vendor], [SupplyingSite], [ActualDate], [AuthorisedBy] FROM [InboundGoods]">
    </asp:SqlDataSource>
<telerik:RadGrid ID="RadGrid2" runat="server"   DataSourceID="SqlDataSource2" AllowFilteringByColumn="true"  >
 <MasterTableView
     DataKeyNames="Ref" AllowFilteringByColumn="true"
     DataSourceID="SqlDataSource2"
     TableLayout="Auto"
     PageSize="1">
   <DetailTables>
     <telerik:GridTableView
         runat="server"
         DataKeyNames="Ref"
         DataSourceID="SqlDataSource1"  >
       <ParentTableRelation>
         <telerik:GridRelationFields
           DetailKeyField="Ref"
           MasterKeyField="Ref" />
       </ParentTableRelation>
     </telerik:GridTableView>
   </DetailTables>
 </MasterTableView>
</telerik:RadGrid> 
  
  
    </form>
</body>
</html>

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Feb 2011, 12:14 PM
Hello Steve,

I have also experienced the same issue when I tried this in older version of Telerik controls. So please download the latest version of Telerik controls and see if it helps.

Thanks,
Princy.
0
Steve
Top achievements
Rank 1
answered on 24 Feb 2011, 09:43 PM
Hi Princy,
Should have stated the version. It's Q3 2010 SP2.
Cheers
Steve
0
Martin
Telerik team
answered on 02 Mar 2011, 01:26 PM
Hello Steve,

Indeed the reported problem can be reproduced with the latest official version of RadControls (Q2 2010 ->2010.3.1317). The issue seems to be related to the auto-generated columns of the detail table. Currently the easiest workaround is to use declarative columns instead.

I am going to forward your report to our developers for further investigation. Once I have any feedback from them I will update this forum thread accordingly.

I hope this helps.

Best wishes,
Martin
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Martin
Telerik team
answered on 09 Mar 2011, 02:29 PM
Hello Steve,

As a follow up to my previous post I would like to inform you that our developers have implemented a fix for the reported issue that will be available in the official Q1 2011 release of the controls. The release itself is expected next Wednesday (March 16-th).

Best regards,
Martin
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Steve
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Steve
Top achievements
Rank 1
Martin
Telerik team
Share this question
or