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

[Solved] Disable Sorting

2 Answers 180 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JungTae
Top achievements
Rank 1
JungTae asked on 08 Nov 2010, 07:19 PM
I want to disable the sorting function which fires when the user clicks and drags a column to the top of the grid. Is this possible?

2 Answers, 1 is accepted

Sort by
0
JungTae
Top achievements
Rank 1
answered on 08 Nov 2010, 07:43 PM
My mistake, I meant grouping
0
Accepted
Vanya Pavlova
Telerik team
answered on 10 Nov 2010, 09:29 AM
Hello JungTae,

You have several options if you want to disable Grouping functionality in RadGridView, based on your custom requirements.
You can cancel Grouping event of RadGridView using following code:

private void radGridView_Grouping (object sender, Telerik.Windows.Controls.GridViewGroupingEventArgs e)
{
   e.Cancel = true;
}

In addition to this, you can also hide GridViewGroupPanel through setting ShowGroupPanel property of RadGridView to False.

Also you have an option to disable grouping only for particular columns through setting IsGroupable property to false to that column, using the following markup:

<telerik:GridViewDataColumn IsGroupable="False" Header="ID" DataMemberBinding="{Binding ID}"/>


Regards,
Vanya Pavlova
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
JungTae
Top achievements
Rank 1
Answers by
JungTae
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or