How to Size the GridViewToggleButton

1 Answer 28 Views
DataFilter GridView
Luppran
Top achievements
Rank 1
Luppran asked on 30 Nov 2021, 07:29 PM

Hello,

im looking for a method to make the GridViewToggleButton (plus/minus Icon) bigger.
Do Somebody has an Idea?


 

1 Answer, 1 is accepted

Sort by
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.

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
DataFilter GridView
Asked by
Luppran
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or