im looking for a method to make the GridViewToggleButton (plus/minus Icon) bigger. Do Somebody has an Idea?
1 Answer, 1 is accepted
0
Stenly
Telerik team
answered on 02 Dec 2021, 03:03 PM
Hello Luppran,
If you are using ChildTableDefinions in your project, to visualize hierarchy data, you would need to extract and edit the default template of the GridViewRow element from the corresponding theme. In the extracted template you can navigate to the GridViewToggleButton button with x:Name= "PART_HierarchyExpandButton" and change its template to fit your needs. Then, create a new style that targets the GridViewRow element and set the Template property to the modified template.
If the RowDetails are used instead of the ChildTableDefinions, you could apply a style to the ToggleButtonStyle property of the telerik:GridViewToggleRowDetailsColumn.
Please note that depending on the used version of the assemblies (NoXaml and Xaml), you would need to take certain actions. For example, if the NoXaml ones are used, you would need to base the style, that targets the GridViewRow, to the default style using the BasedOn property. If the Xaml DLLs are used, you would need to extract every StaticResource present in the template (Brushes, Thicknesses, used Templates).
With that said, I hope the provided information is of help to you.