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

[Solved] Group Header Agregates and Slideout Functionality

3 Answers 174 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Laura
Top achievements
Rank 1
Laura asked on 22 Nov 2010, 09:25 PM
I'm working with the Silverlight RadGridView control and looking to complete a project that has 3 levels of aggregate roll-ups (Department, Project, Cost).  On the project and the price levels, I intend to include a cell that contains an image with a "slide-out" menu with various pieces of functionality.  The cost row is the basis of the grid.  It is divided into costs for the 12 fiscal periods in a month.  These each of these aggregate cost values need to be rolled up to the Project and Department level.  

I've looked into using nested grids and grouping, but each seem to have their issues.

Nested Grids:
Nested Grids do not allow the columns to line up.  Therefore, it will be difficult to line up the aggregates for each of the fiscal periods.

Grouping:
Grouping appears to only allow for "Group Footers".  I was hoping to have all the Grouping details appear in the Grouping Section or, at a minimum, a "Group Header".

I've attached an image that gives a rough idea of my POC.  I'm simply asking the forum for what they feel is the best approach for some of these ideas.

Any help would be greatly appreciated.  Thanks!
~Keith

3 Answers, 1 is accepted

Sort by
0
Laura
Top achievements
Rank 1
answered on 24 Nov 2010, 06:18 PM
I currently have the fly-out menu working by setting MouseEventHandlers on certain cells on the grid RowLoaded event.  Does anyone have any suggestions for the grouping?  I am considering replicating the grouping manually by adding my own +/- images hiding/showing the rows manually.  Is this an acceptable solution or is there some way to leverage the existing telerik grouping functionality?  I can set the curGridViewRow.Visibility = System.Windows.Visibility.Collapsed but it doesn't cause the grid to refresh and consume the whitespace.

Once again, any direction would be appreciated.

Thanks,
~Keith
0
Veselin Vasilev
Telerik team
answered on 25 Nov 2010, 03:32 PM
Hello Laura,

You can put different information in the Group Headers as well. Please check this online demo and group by Date for example.

The RadGridView provides methods to expand or collapse a group, namely ExpandGroup(IGroup) and CollapseGroup(IGroup).

IGroup groupToExpand = this.clubsGrid.Items.Groups[1] as IGroup;
 
this.clubsGrid.ExpandGroup(groupToExpand);

Hope this helps.

Best wishes,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Laura
Top achievements
Rank 1
answered on 29 Nov 2010, 06:49 PM
I see that different information can be included in the headers.  However, can the columns be displayed and can images be included so I can have "fly-out" functionality on the image?
Thanks,
~Keith
Tags
GridView
Asked by
Laura
Top achievements
Rank 1
Answers by
Laura
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or