Template for GroupHeaderRow style with GroupRenderMode="Flat"

6 posts, 0 answers
  1. Autolog
    Autolog avatar
    12 posts
    Member since:
    Jun 2010

    Posted 25 Mar 2014 Link to this post

    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?
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 26 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Autolog
    Autolog avatar
    12 posts
    Member since:
    Jun 2010

    Posted 28 Mar 2014 in reply to Yoan Link to this post

    Cool, thanks a bunch.

    // Rasmus
  5. Autolog
    Autolog avatar
    12 posts
    Member since:
    Jun 2010

    Posted 28 Mar 2014 Link to this post

    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). 
  6. Autolog
    Autolog avatar
    12 posts
    Member since:
    Jun 2010

    Posted 31 Mar 2014 in reply to Autolog Link to this post

    much of my restyling involves changing the backgrounds to *transparent* ...
  7. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 02 Apr 2014 Link to this post

    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.

     
Back to Top
DevCraft banner