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
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"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<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>