Remove sorting row when grouping

3 posts, 1 answers
  1. Charles
    Charles avatar
    5 posts
    Member since:
    Jul 2014

    Posted 21 Aug 2015 Link to this post

    Hi

    In my grid, when I used Grouping, how do we remove the first row which it was a sort button. Please see attachment.

    This is my code

     <telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" CssClass="RadGrid RadGrid_Silk" OnItemCommand="itemClickRadGrid" Visible="true" OnItemDataBound="RadGrid1_ItemDataBound"                AllowSorting="True" AllowPaging="True" PageSize="100" ShowGroupPanel="True" AutoGenerateColumns="false" AllowFilteringByColumn="false" OnNeedDataSource="RadGrid1_NeedDataSource1">                <MasterTableView GroupLoadMode="Client" TableLayout="Fixed" EnableGroupsExpandAll="false" DataKeyNames="FilingIdentifier" ShowHeader="false">                    <GroupByExpressions>                        <telerik:GridGroupByExpression>                            <SelectFields>                                <telerik:GridGroupByField HeaderValueSeparator=" " HeaderText=" " FieldName="Name"></telerik:GridGroupByField>                            </SelectFields>                            <GroupByFields>                                <telerik:GridGroupByField FieldName="Name" SortOrder="None"></telerik:GridGroupByField>                            </GroupByFields>                        </telerik:GridGroupByExpression>                    </GroupByExpressions>                    <Columns>                        <telerik:GridBoundColumn DataField="TaxYear" HeaderText="Year" UniqueName="TaxYear"></telerik:GridBoundColumn>                        <telerik:GridBoundColumn DataField="PreviousFiling" Visible="false" UniqueName="PreviousFiling"></telerik:GridBoundColumn>                        <telerik:GridBoundColumn DataField="ForwardFiling" Visible="false" UniqueName="ForwardFiling"></telerik:GridBoundColumn>                        <telerik:GridButtonColumn Text="Launch" UniqueName="lauchrow" CommandName="launchRow" ButtonType="PushButton" HeaderStyle-Width="70px"></telerik:GridButtonColumn>                        <telerik:GridButtonColumn Text="Add tax year" UniqueName="addTaxYear" CommandName="cf" ButtonType="PushButton" HeaderStyle-Width="110px"></telerik:GridButtonColumn>                    </Columns>                </MasterTableView>                <GroupingSettings />                <ClientSettings AllowDragToGroup="false">                    <Selecting AllowRowSelect="true" />                </ClientSettings>            </telerik:RadGrid>

     

     

    Thanks

  2. Answer
    Eyup
    Admin
    Eyup avatar
    3700 posts

    Posted 24 Aug 2015 Link to this post

    Hello Charles,

    Just remove the ShowGroupPanel property and you should be good to go.
    That should do the trick. Please give it a try and let me know if it works for you.

    Regards,
    Eyup
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Charles
    Charles avatar
    5 posts
    Member since:
    Jul 2014

    Posted 24 Aug 2015 in reply to Eyup Link to this post

    Thanks it works!
Back to Top