Remove Gridlines from GridViewGroupFooterCell or GridViewGroupFooterRow

4 posts, 0 answers
  1. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2011 Link to this post

    How can I remove the grid lines from my RadGrid Footer and make the content be seen from the left part of the footer?


    See the highlighted image on the file i'll be sharing/attaching... please help...
    http://www4.picturepush.com/photo/a/6383082/img/6383082.png


    Thanks

    Y
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 23 Aug 2011 Link to this post

    Hello Yana,

     
    You may predefine the template of GridViewFooterCell using Microsoft Expression Blend and remove its Border from there. Within its template you may also set the alignment of the ContentPresenter (which is of type ContentTemplate). The same is valid for GridViewGroupFooterCell. As an alternative each GridViewColumn exposes a property FooterTextAlignment which is responsible for content alignment in each column footer. In order to keep our future support communication clean and consistent please keep only a single thread open on a corresponding matter.
     

     

    Best wishes,
    Vanya Pavlova
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Yana
    Yana avatar
    32 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2011 Link to this post

    Thanks for responding, but, I'm quite having some problems with Expression Blend, Can you please provide other way on how to remove the gridlines like programmatically, in Silverlight/C#-VS2010?


    Thanks!
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 24 Aug 2011 Link to this post

    Hello Yana,

     

    Even with a simple style you may remove these the Borders as part of GridViewFooterCell/GridViewGroupFooterCell:

    <Window.Resources>
        <Style TargetType="telerik:GridViewFooterCell">
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Background" Value="Red"/>
        </Style>
    <Style TargetType="telerik:GridViewGroupFooterCell">
        <Setter Property="Background" Value="Green"/>
        <Setter Property="BorderThickness" Value="0"/>
        </Style>
        </Window.Resources>
        <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
            <telerik:RadGridView ShowColumnFooters="True" ShowGroupFooters="True" ItemsSource="{Binding Collection}"/>
        </Grid>


    Another possibility is to gather these cells from RadGridView using the extension method ChildrenOfType and directly set its BorderThicknes from there. If you need to get any xaml file from a Telerik theme you may access it from the Themes folder of your personal installation. 


    Hope this helps!


    Greetings,
    Vanya Pavlova
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top