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

Modify GroupHeaderRow Behavior

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 22 Feb 2018, 04:44 PM

I'm trying to modify the default behavior for expanding and contracting groups in the grid. End users (gotta love them) are complaining that it's too easy to inadvertently hide or show a group by clicking anywhere in the GroupHeaderRow. They want the group to be expanded or contracted based on clicking the glyph arrow on the far left of the GroupHeaderRow. I know I'm going to need to edit the Control Template, but just wondering if I could save some time by asking for specifics on what needs to be edited.

Thanks all.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 27 Feb 2018, 11:20 AM
Hello David,

The changes you need to make really depend on the specific theme you're using. For example, if you're using the Office_Black theme, you can simply remove the IsChecked binding of the HeaderButton ToggleButton. In addition, you may want to replace the IconOuterBorder element with a ToggleButton and copy the IsChecked binding from the HeaderButton along with its GroupHeaderRowToggleButtonStyle.

For your convenience, I'm attaching a small sample project with the aforementioned changes for the Office_Black theme.

Please note once more that If you're using a different theme, the changes you will need to apply may differ. If you require any assistance in the process, please specify which template you're using and I willl gladly help you out further.

Regards,
Dilyan Traykov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or