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

Question for GroupDescriptor in RadGridView

3 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Maulik Patel
Top achievements
Rank 1
Maulik Patel asked on 24 Sep 2010, 02:41 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 30 Sep 2010, 07:10 AM
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
0
Maulik Patel
Top achievements
Rank 1
answered on 30 Sep 2010, 10:05 AM
Thanks, Vanya. Your suggestion for second option really helped.

Any idea about when the expand direction will be supported?

Regards,
Maulik
0
Vanya Pavlova
Telerik team
answered on 01 Oct 2010, 07:17 AM
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
Tags
GridView
Asked by
Maulik Patel
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Maulik Patel
Top achievements
Rank 1
Share this question
or