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
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
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?
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
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?
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
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.
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