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

How to remove drag & drop column grouping

1 Answer 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajz
Top achievements
Rank 1
Rajz asked on 26 Apr 2011, 12:11 PM
How to remove drag & drop column grouping?

Thank you

Regards
Raj

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 28 Apr 2011, 09:05 AM
Hi Rajz,

You should not set the value of a table view's GroupByExpressions property in order to avoid the appearance of an initial group. Please remove the code snippet below from the grid declaration in order to remove the initial grouped column:
<GroupByExpressions>
                  <telerik:GridGroupByExpression>
                      <SelectFields>
                          <telerik:GridGroupByField FieldAlias="Received" FieldName="Received" FormatString="{0:D}"
                              HeaderValueSeparator=" from date: "></telerik:GridGroupByField>
                      </SelectFields>
                      <GroupByFields>
                          <telerik:GridGroupByField FieldName="Received" SortOrder="Descending"></telerik:GridGroupByField>
                      </GroupByFields>
                  </telerik:GridGroupByExpression>
              </GroupByExpressions>

More informtion about GroupByExpressions is available here:
http://www.telerik.com/help/aspnet-ajax/grdgroupbydeclarativedefinition.html

Best wishes,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Rajz
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or