This is a migrated thread and some comments may be shown as answers.

Remove sorting row when grouping

2 Answers 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Charles
Top achievements
Rank 1
Charles asked on 21 Aug 2015, 03:46 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 24 Aug 2015, 11:34 AM
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
0
Charles
Top achievements
Rank 1
answered on 24 Aug 2015, 04:00 PM
Thanks it works!
Tags
Grid
Asked by
Charles
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Charles
Top achievements
Rank 1
Share this question
or