Question for GroupDescriptor in RadGridView

4 posts, 1 answers
  1. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 24 Sep 2010 Link to this post

    Hi,

    Is there a way to change the direction of grouping header? By default it shows header on top and data below it (inside a group) when you expand the header. But I want to show the data above of the header (Completely reverse what it has right now) when expanded, is it possible? 

    Also, is there a way to provide the custom header in grouping? It shows value of binding Member by default but I want to show other data along with it (like "Name - {Name}").

    Please reply if anyone knows the solution.

    Regards,
    Maulik
  2. Answer
    Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 30 Sep 2010 Link to this post

    Hi Maulik Patel,

    As far as I can understand, you want to reverse the expand direction of the GridViewGroupRow-unfortunately currently this is not possible.Considering your second question this could be easily achieved through defining GroupHeaderTemplate for the RadGridView in this way:

    <DataTemplate x:Key="dt">
      <StackPanel Orientation="Horizontal">
         <TextBlock Text="{Binding GroupDescriptor.Member}" Margin="2"/>
         <TextBlock Text="-" Margin="2"/> 
         <TextBlock Text="{Binding Group.Key}" Margin="2"/>
      </StackPanel>
    </DataTemplate>
    Attached is a sample project  that demonstrates the approach above.


    Best wishes,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 30 Sep 2010 Link to this post

    Thanks, Vanya. Your suggestion for second option really helped.

    Any idea about when the expand direction will be supported?

    Regards,
    Maulik
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 01 Oct 2010 Link to this post

    Hi Maulik Patel,

    I  logged  this option as  Feature  Request  in  our  Public  Issue Tracking  System and you can vote on implementing  this  feature in the future  following  this link.

    Kind regards,
    Vanya Pavlova
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top