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

Extracting GroupHeaderRow template

7 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sebastian
Top achievements
Rank 1
Sebastian asked on 13 Jul 2018, 02:14 PM

Hi. I am working on an application where I need to modify the GroupHeaderRow template. We are using version 2015.1.225.45 of Telerik UI for WPF, but everything is in DLLs. How should I proceed to get this template?.

Regards,

Sebastian

7 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 16 Jul 2018, 10:15 AM
Hello Sebastian,

You can see how to extract a ControlTemplate in the Editing Control Templates help article. Can you check the article and let me know if it helps?

Regards,
Martin Ivanov
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.
0
Sebastian
Top achievements
Rank 1
answered on 16 Jul 2018, 11:17 AM

Hi. I now have a template, but I am not sure if it is the wrong version, or there is some other problem. I am trying to set the ColumnSpan=2 for the toggle button below "HeaderButton" in the GroupHeaderRowStyle template. I get the following error:

The member "IndentLevel" is not recognized or is not accessible. 

For the following code:

<grid:IndentPresenter Grid.Column="0" IndentLevel="{TemplateBinding IndentLevel}"

 

What could be the error?


0
Martin Ivanov
Telerik team
answered on 18 Jul 2018, 10:55 AM
Hello Sebastian,

For your convenience I've extracted the GroupHeaderRow from the default Office_Black theme and used it in a sample project. I got the style from the UI for WPF installation folder. You can use the same approach with the theme you are using. I hope that helps.

Regards,
Martin Ivanov
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.
0
Sebastian
Top achievements
Rank 1
answered on 18 Jul 2018, 11:08 AM

Hi,

I managed to extract a template, but I get the following error:
"The member "IndentLevel" is not recognized or is not accessible. "
For the following code in the GroupHeaderRow control template:
<grid:IndentPresenter Grid.Column="0" IndentLevel="{TemplateBinding IndentLevel}"

What could be the cause?

 

0
Martin Ivanov
Telerik team
answered on 18 Jul 2018, 11:56 AM
Hello Sebastian,

Can you please send me the project that reproduces the error? This will allow me to test it locally and investigate what happens.

Regards,
Martin Ivanov
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.
0
Sebastian
Top achievements
Rank 1
answered on 18 Jul 2018, 01:52 PM

Okay, I am making some progress.

Now when I try to make a style for the group header with

<Style BasedOn="{StaticResource GroupHeaderRowStyle}">

I get an error saying 'Resource "GroupHeaderRowStyle" is not found', even though I have the Telerik.Windows.Controls.GridView.dll added to References in my project. 

0
Martin Ivanov
Telerik team
answered on 19 Jul 2018, 09:45 AM
Hello Sebastian,

The StaticResource GroupHeaderRowStyle doesn't come from the Telerik.Windows.Controls.GridView.dll, but from the Telerik.Windows.Controls.GridView.xaml file. You can read more about this in the Setting a Theme article. Note that if you don't use NoXaml dlls you don't need the BasedOn setting so you can remove it.

Regards,
Martin Ivanov
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
Sebastian
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Sebastian
Top achievements
Rank 1
Share this question
or