Hi,
I had a group by grid working well and then added a nested view to allow extra details to be displayed for a selected item. It all works - expanding collapsing groups until I expand one of the nested views - then the group expansion/collapse is broken until I refresh the view.
Any ideas? Here's a portion of the code...
I had a group by grid working well and then added a nested view to allow extra details to be displayed for a selected item. It all works - expanding collapsing groups until I expand one of the nested views - then the group expansion/collapse is broken until I refresh the view.
Any ideas? Here's a portion of the code...
| <telerik:RadGrid ID="HitRadGrid" runat="server" |
| AllowCustomPaging="True" |
| AllowMultiRowSelection="True" |
| AllowPaging="True" |
| AllowSorting="False" |
| AutoGenerateColumns="False" |
| ShowGroupPanel = "false" |
| SortingSettings-EnableSkinSortStyles="false" |
| SortingSettings-SortedAscToolTip = "Ascending" OnItemDataBound="GridItemDataBound" |
| SortingSettings-SortedDescToolTip="Descending" GridLines="None" |
| Skin="Web20"> |
| <PagerStyle Mode="NextPrevAndNumeric" ></PagerStyle> |
| <MasterTableView |
| AutoGenerateColumns="false" |
| AllowSorting="false" GroupLoadMode="Client" |
| AllowCustomSorting="true" |
| AllowMultiColumnSorting="true" |
| ClientDataKeyNames="Reference" |
| DataKeyNames="Reference" AllowNaturalSort="False"> |
| <GroupByExpressions> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldName="Year" /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldName="Year" SortOrder="Descending"/> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| <telerik:GridGroupByExpression> |
| <SelectFields> |
| <telerik:GridGroupByField FieldName="Author" /> |
| </SelectFields> |
| <GroupByFields> |
| <telerik:GridGroupByField FieldName="Author" SortOrder="Ascending"/> |
| </GroupByFields> |
| </telerik:GridGroupByExpression> |
| </GroupByExpressions> |
| <Columns> |
| <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn"> |
| <HeaderStyle Width="32px" /> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridHyperLinkColumn UniqueName="TitleColumn" DataTextField="Title" HeaderText="Title" DataNavigateUrlFields="Reference"></telerik:GridHyperLinkColumn> |
| <telerik:GridBoundColumn UniqueName="AuthorColumn" DataField="AUTHOR" HeaderText="Author" /> |
| <telerik:GridBoundColumn UniqueName="DateColumn" DataField="DATE" HeaderText="Date" /> |
| <telerik:GridHyperLinkColumn UniqueName="RelatedColumn" Text="Related..." DataNavigateUrlFields="Related"></telerik:GridHyperLinkColumn> |
| </Columns> |
| <NestedViewSettings> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="Reference" MasterKeyField="Reference" /> |
| </ParentTableRelation> |
| </NestedViewSettings> |
| <NestedViewTemplate> |
| <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap"> |
| <div class="contactWrap"> |
| <fieldset style="padding: 10px;"> |
| <legend style="padding: 5px;"><b>Detail info for document: <%#Eval("Title") %></b> |
| </legend> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| Reference: |
| </td> |
| <td> |
| <%#Eval("reference") %> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Location: |
| </td> |
| <td> |
| <%#Eval("LOCATION") %> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </fieldset> |
| </div> |
| </asp:Panel> |
| </NestedViewTemplate> |
| <NoRecordsTemplate> |
| No Results Found |
| </NoRecordsTemplate> |
| </MasterTableView> |
| <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" AllowGroupExpandCollapse="true" > |
| <Resizing AllowColumnResize="true" EnableRealTimeResize="true" /> |
| <Selecting AllowRowSelect="true"></Selecting> |
| </ClientSettings> |
| <SortingSettings EnableSkinSortStyles="False" SortedAscToolTip="Ascending" |
| SortedDescToolTip="Descending" /> |
| </telerik:RadGrid> |
| <div class="searchMsgDiv"> |
| <asp:Label ID="MessageLabel" runat="server" EnableViewState="false" Visible="false" /> |
| </div> |
| </asp:Panel> |
| </div> |
