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

Nested grid control template override

1 Answer 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Wesley
Top achievements
Rank 1
Wesley asked on 01 Jul 2019, 09:27 PM

I'm building keyboard navigation for our grids that relies heavily on the ordering of items in the visual tree. The problem I'm having is that the GridViewToggleButton for a GridViewRow with a nested grid comes after the nested grid in the visual tree.

 

I've been searching through Telerik.GridView.xaml of the appropriate theme to try to find the control template where I could change the ordering of controls, but I have been unable to find the control template responsible.

 

Can you tell me which control template I need to edit for a row inside a grouping that has a nested grid inside?

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 04 Jul 2019, 09:56 AM
Hello Wesley,

Thank you for the provided images.

Looking at the radgridviewvisualtree.png I can see that you are using Hierarchical GridView for the child table. The GridViewToggleButton button which you want to move is located in the template of the GridViewRow. What I can suggest you is to extract the default template of the GridViewRow and modify its template to fir better in your scenario. I need to point out that if you are using different themes you will need to modify the GridViewRow default template for every theme as the structure of the control is different. You can take a look at the Editing Control Templates help article which describes how you can get the default template of the controls. In your case, the GridViewRow template is located in the Themes.Implicit/WPF40/OfficeBlack (or your theme)/Themes/ Telerik.Windows.Controls.GridView.xaml.

Give this approach a try and let me know if I was able to help you.

Regards,
Dinko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
Wesley
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or