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

Template for GroupHeaderRow style with GroupRenderMode="Flat"

5 Answers 110 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Autolog
Top achievements
Rank 1
Autolog asked on 25 Mar 2014, 03:24 PM
According to this http://www.telerik.com/help/wpf/gridview-styling-group-row.html, when using GroupRenderMode="Flat" the style should target GroupHeaderRow instead of GridViewGroupRow. If I use Blend to extract the style as explained in the documentation, I get a style targeting the GridViewGroupRow, and changing this to target the GroupHeaderRow instead, leads to an exception (Element is already child of another element).  Where can I find the default styles and templates targeting GroupHeaderRow?

5 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 26 Mar 2014, 05:08 PM
Hi,

I would suggest you to use our Implicit Styles. More information about them can be found in this help article.

You can find the style locally, where the Telerik Ui for Silverlight is installed, inside the Themes.Implicit folder. The full path would be:
C:\Program Files (x86)\Telerik\UI for Silverlight Q1 2014\Themes.Implicit\OfficeBlack\Themes\Telerik.Windows.Controls.GridView.xaml.  You can then copy the template for the GroupHeaderRow and change it per your requirements.


Regards,
Yoan
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Autolog
Top achievements
Rank 1
answered on 28 Mar 2014, 09:29 AM
Cool, thanks a bunch.

// Rasmus
0
Autolog
Top achievements
Rank 1
answered on 28 Mar 2014, 01:30 PM
Ok, I took all the styles from the file and modified all the implicit styles and templates as you suggested, and I managed to get the groupheaderow style to my liking. The problem is that after my restyling, the group headers now become a mess when scrolling (see attached screenshots).
By process of elimination I realized that the cause is that much of my restyling involves changing the backgrounds to, unfortunately this leads to the group headers being displayed underneath the various other items (rows/footers) etc. when scrolling. Is there any way to solve this without setting explicit backgrounds? (P.S. I'm using RadControls for Silverlight Q3 2012 if it has any significance). 
0
Autolog
Top achievements
Rank 1
answered on 31 Mar 2014, 12:21 PM
much of my restyling involves changing the backgrounds to *transparent* ...
0
Yoan
Telerik team
answered on 02 Apr 2014, 08:37 AM
Hi Rasmus,

I could hardly guess what may be the problem since the information you provided is not enough. Generally, you should not have any problems if you are using the default template of GroupHeaderRow. I suppose that the problem is caused by the modification you made to the GroupHeaderRow's template. I can suggest that you compare your modified template with the default one and check if you have removed some important "parts" of the template.

Regards,
Yoan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Autolog
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Autolog
Top achievements
Rank 1
Share this question
or