Hi
I have already add a toggle button in grid's each row to expand or collapse the grid hierarcy, I also want to add a toggle button on the grid header that control expand or collapse all grid rows. How to implement this.In attachment is my grid screen-shot. Below is some of my source code:
<telerik:RadGrid ID="gridActions" runat="server" AutoGenerateColumns="false" GridLines="Both"
AllowPaging="True" AllowSorting="true" AllowFilteringByColumn="false" Width="100%"
Skin="SL" OnPageIndexChanged="GridPageChangedEventArgs" OnSortCommand="GridPageSorting"
EnableEmbeddedSkins="False">
<PagerStyle Mode="NextPrevAndNumeric" />
<GroupingSettings CaseSensitive="false" />
<HeaderContextMenu EnableEmbeddedSkins="False">
</HeaderContextMenu>
<HeaderStyle Height="20px" Font-Size="XX-Small" />
<%--<SortingSettings EnableSkinSortStyles="false" />--%>
<ExportSettings Excel-FileExtension="xls" Excel-Format="Html" ExportOnlyData="true"
FileName="FCPASearchResult" HideStructureColumns="true" IgnorePaging="true" OpenInNewWindow="true">
</ExportSettings>
<MasterTableView TableLayout="Fixed" DataKeyNames="ActionID" AutoGenerateColumns="false"
CommandItemDisplay="None" NoMasterRecordsText='<%#NoRecordsToDisplayText%>' ItemStyle-HorizontalAlign="Left"
HeaderStyle-HorizontalAlign="Center" ExpandCollapseColumn-ButtonType="ImageButton"
ExpandCollapseColumn-CollapseImageUrl="../../MasterPages/images/collapser.gif"
ExpandCollapseColumn-ExpandImageUrl="../../MasterPages/images/expander.gif"
HeaderStyle-Font-Bold="true"
CellPadding="0" CellSpacing="0" HierarchyLoadMode="Client">
I have already add a toggle button in grid's each row to expand or collapse the grid hierarcy, I also want to add a toggle button on the grid header that control expand or collapse all grid rows. How to implement this.In attachment is my grid screen-shot. Below is some of my source code:
<telerik:RadGrid ID="gridActions" runat="server" AutoGenerateColumns="false" GridLines="Both"
AllowPaging="True" AllowSorting="true" AllowFilteringByColumn="false" Width="100%"
Skin="SL" OnPageIndexChanged="GridPageChangedEventArgs" OnSortCommand="GridPageSorting"
EnableEmbeddedSkins="False">
<PagerStyle Mode="NextPrevAndNumeric" />
<GroupingSettings CaseSensitive="false" />
<HeaderContextMenu EnableEmbeddedSkins="False">
</HeaderContextMenu>
<HeaderStyle Height="20px" Font-Size="XX-Small" />
<%--<SortingSettings EnableSkinSortStyles="false" />--%>
<ExportSettings Excel-FileExtension="xls" Excel-Format="Html" ExportOnlyData="true"
FileName="FCPASearchResult" HideStructureColumns="true" IgnorePaging="true" OpenInNewWindow="true">
</ExportSettings>
<MasterTableView TableLayout="Fixed" DataKeyNames="ActionID" AutoGenerateColumns="false"
CommandItemDisplay="None" NoMasterRecordsText='<%#NoRecordsToDisplayText%>' ItemStyle-HorizontalAlign="Left"
HeaderStyle-HorizontalAlign="Center" ExpandCollapseColumn-ButtonType="ImageButton"
ExpandCollapseColumn-CollapseImageUrl="../../MasterPages/images/collapser.gif"
ExpandCollapseColumn-ExpandImageUrl="../../MasterPages/images/expander.gif"
HeaderStyle-Font-Bold="true"
CellPadding="0" CellSpacing="0" HierarchyLoadMode="Client">