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

Footers and GroupHeaders...

4 Answers 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 03 May 2010, 01:02 PM
We have some AggregateFunctions in our RadGridView. These are visible in the grid's footer like "Sum: kr. 100,00".
But we don't want to show them in the GroupHeader (or Footer). How can we hide them there?

4 Answers, 1 is accepted

Sort by
0
Rieni De Rijke
Top achievements
Rank 1
answered on 04 May 2010, 10:26 AM
I see that this question was asked before:




You're ansver:
"...however as this seems to be a more and more requested feature from our clients we will be thinking of providing this functionality in some way."

This would be great! These aggregates in the GroupHeader look weird and also the aggregates for hided columns show up.



0
Maya
Telerik team
answered on 04 May 2010, 05:12 PM
Hi Rieni De Rijke,

Now there is a single property of the GridViewGroupRow that removes the result of the aggregate functions shown in the GroupHeader and it is called ShowHeaderAggregates. What you need to do is to define a style for the GridViewGroupRow and set that property to "False".

Furthermore, if you do not want to show the results of the functions in the GroupFooter, then you need either to set ShowGroupFooters of RadGridView property to "false" or not to set it at all as its default value is "false". In case you want to show the function for the whole grid, not only for the group, you should set the property of the grid ShowColumnFooters to "true". 

I am sending you a sample project where you can test the proposed solution. Here, the used aggregate function is CountFuntion.

Sincerely yours,
Maya
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
Rieni De Rijke
Top achievements
Rank 1
answered on 05 May 2010, 09:04 AM
Thank you for your example. I guess this was made in VS2010. I had to change to .Net 3.5 and it worked OK.
So I tried to do the same in our application (VS 2008). I downloaded the newest internal builds.

The grid is placed in a radTabControl and on a usercontrol.
When I start dragging a title to the GroupHeader I get an error:

Root AdornerLayer Not Found. Please make sure that your root visual is Window or other element that has an adorner layer. Alternatively, wrap your root panel in an <AdornerDecorator> element.

and...

Source: Telerik.Windows.Controls
Void OpenPopup()

   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OpenPopup()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.StartDragging()
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.TryStartDrag(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnTrackedElementMouseMoveInternal(IMouseEventArgs e)
   at Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.OnCoverRectangleMouseMove(Object sender, MouseEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop..... and so on...



0
Maya
Telerik team
answered on 06 May 2010, 03:43 PM
Hello Rieni De Rijke,

Unfortunately, we could not reproduce your problem. It would be better if you could send us your project so that we can test it and see where exactly is the error.
I am sending you the updated project with RadGridView placed in RadTabControl and UserControl in Visual Studio 2008 with the same version of assembly you are using. In that way you can see if we have misunderstood something in your scenario.
 

All the best,
Maya
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
Rieni De Rijke
Top achievements
Rank 1
Answers by
Rieni De Rijke
Top achievements
Rank 1
Maya
Telerik team
Share this question
or