GridView GroupedRow doesn't line up & GroupRow edit

6 posts, 0 answers
  1. Dirk Liebich
    Dirk Liebich avatar
    17 posts
    Member since:
    Jun 2010

    Posted 31 Oct 2011 Link to this post

    I was wondering if someone had a solution to get the Grouped Row headers to line up with the rest of the data.  Someone posted a similar topic on the Silverlight forum:  http://www.telerik.com/community/forums/silverlight/gridview/aggregate-result-display.aspx  but the example project doesn't work for me in WPF, even with a little massaging.

    Also, I was wondering if the GroupedRow header values (The aggregate values) could be editable?

    Thanks
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 Nov 2011 Link to this post

    Hi Dirk Liebich,

    I am sending you the same project, but targeting WPF. I hope it helps.
     

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Dirk Liebich
    Dirk Liebich avatar
    17 posts
    Member since:
    Jun 2010

    Posted 01 Nov 2011 Link to this post

    Thanks, this is what I was looking for, and I really appreciate you getting back to me so quickly.

     I am having a little bit of difficulty porting it to my main solution (Which has many, many columns).  Does this solution work for very large, dynamically generated tables?  

    Also, for my second question, I templated the GridViewRowFooterCell like this:

    <ControlTemplate x:Key="GroupFooterCellTemplate">
                <TextBox Text="{Binding Value, Mode=OneWay}"/>
            </ControlTemplate>
            <Style TargetType="telerik:GridViewGroupFooterCell">
                <Setter Property="Padding" Value="0"/>
                <Setter Property="Template" Value="{StaticResource GroupFooterCellTemplate}"/>
            </Style>

    And it allows me to edit the Aggregated Cell, which is what I wanted, but unfortunately I lose the Values of the Cells that aren't aggregates.  Basically in my example, I have Two name columns, and then 6 Integer columns.  I group by the names, and aggregate the integers.  After applying my style, I lose the names.  Do you think I might be able to find a work around for this?

    Thanks again for your quick reply.
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 04 Nov 2011 Link to this post

    Hello Dirk Liebich,

    On your questions :
    The solution provided should be scalable to larger scenarios. In case you still have troubles adjusting it to your production project - please let me know what the troubles are and I will be glad to assist.

    On your second question - What do you mean by "I lose the names"  ?

    Best wishes,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Marc-Andre
    Marc-Andre avatar
    8 posts
    Member since:
    Sep 2007

    Posted 02 May 2012 Link to this post

    Hi Maya,

    Your solution can be slightly improved by making the Group names in the header clickable in both Collapsed and Expanded states. You achieve this with the following code :
    ...
    <Border x:Name="Content" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="1" IsHitTestVisible="False">
    ...
    <ControlTemplate.Triggers>
    <Trigger Property="IsExpanded" Value="True">
    ...
    <Setter Property="IsHitTestVisible" TargetName="Content" Value="True" />
    ...

    Also, any ideas on how the get back that nice animation on the Expander when the state changes?

    Thanks for your help,

    MarcAndré Gosset
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 May 2012 Link to this post

    Hi Marc-Andre,

    Thank you for sharing your implementation with the community.
    As for the animation, could you provide a bit more information about the one that you require ? 

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
UI for WPF is Visual Studio 2017 Ready