This is a migrated thread and some comments may be shown as answers.
Disable group expand/collapse on grid
4 Answers 106 Views
This is a migrated thread and some comments may be shown as answers.
Nabil Shuhaiber
Top achievements
Rank 1
Nabil Shuhaiber asked on 27 Aug 2010, 11:37 AM
How can I disable the on click expand/collapse of a group on the grid. I want my groups to be fixed.

Thanks
Regards,
Nabil

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Aug 2010, 01:09 PM
Hello Nabil Shuhaiber,

Please be more specific about your requirements and expectations. Are trying to create groups without allowing the end-user to change them ? If that is the case you may define the desired GroupDescriptor and set the property of the grid ShowGroupPanel to "False".
If that does not meet your requirement, we would need more details about your scenario in order to provide you with an appropriate solution. 

Regards,
Maya
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
0
Nabil Shuhaiber
Top achievements
Rank 1
answered on 27 Aug 2010, 01:37 PM
Maya,

I am grouping my data using two groups/aggregates. Currently when the the user clicks the group header it collapses/expands. I don't want this to happen. I want the header displayed but not the ability to collapse/expand. Is this possible?
0
Vanya Pavlova
Telerik team
answered on 27 Aug 2010, 08:04 PM
Hi Nabil Shuhaiber,

Yes that is possible-to achieve this result you have to restyle the whole GridViewGroupRow,and set the IsHitTestVisible to False for the required parts within the template.
I am sending you an example that demonstrates this approach.
Please let me know if you need any further assistance.

All the best,
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
0
Daniel
Top achievements
Rank 1
answered on 11 Aug 2015, 09:28 AM

Updated Notice

Its now much easier theres an event called GroupRowIsExpandedChanging on the RadDataGridView that if you set e.Cancel = true will stop the user from collapsing the group or expanding it.

Asked by
Nabil Shuhaiber
Top achievements
Rank 1
Answers by
Maya
Telerik team
Nabil Shuhaiber
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or