While generating the admin website it would be very nice if the code in bold is generated for the detail panels as well. I anybody has a lead on this I will be happy to code it and release a patch.
Regards,
Ewart
<asp:Panel ID="ShopLocationPanel1" runat="server" CssClass="collapsePanel" Height="0">
<data:EntityGridView ID="GridViewShopLocation" runat="server" AutoGenerateColumns="False"
OnSelectedIndexChanged="GridViewShopLocation_SelectedIndexChanged" DataSourceID="ShopLocationDataSource"
DataKeyNames="ShopLocationId" AllowMultiColumnSorting="false" DefaultSortColumnName=""
DefaultSortDirection="Ascending" ExcelExportFileName="Export_ShopLocation.xls"
Visible='<%# (FormView1.DefaultMode == FormViewMode.Insert) ? false : true %>'>
<Columns>
<asp:CommandField ShowSelectButton="True" />
<data:HyperLinkField HeaderText="Location" DataNavigateUrlFormatString="LocationEdit.aspx?LocationId={0}"
DataNavigateUrlFields="LocationId" DataContainer="LocationIdSource" DataTextField="LocationName" />
</Columns>
<EmptyDataTemplate>
<b>No Shop locations found! </b>
<asp:HyperLink runat="server" ID="hypShopLocation" NavigateUrl="~/admin/ShopLocationEdit.aspx">Add New</asp:HyperLink>
</EmptyDataTemplate>
</data:EntityGridView>
<data:ShopLocationDataSource ID="ShopLocationDataSource" runat="server"
SelectMethod="Find" EnableDeepLoad="true">
<DeepLoadProperties Method="IncludeChildren" Recursive="False">
<Types>
<data:ShopLocationProperty Name="Location" />
</Types>
</DeepLoadProperties>
<Parameters>
<data:SqlParameter Name="Parameters">
<Filters>
<data:ShopLocationFilter Column="ShopId" QueryStringField="ShopId" />
</Filters>
</data:SqlParameter>
<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
</Parameters>
</data:ShopLocationDataSource>
<br />
</asp:Panel>