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

Summary row on _true_ bottom of grid?

3 Answers 141 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Raoul
Top achievements
Rank 1
Raoul asked on 10 Apr 2015, 10:14 AM

When I add a summary row to my grid it works as expected: A summary row is added as a last (visible) line in the grid which remains visible when lines are added and one scrolls the grid.

01.Private Sub AddRadGridView1Summary()
02.        Me.RadGridView1.SummaryRowsBottom.Clear()
03.        Dim betaald As GridViewSummaryItem = New GridViewSummaryItem("Betaald", "{0:F2}", GridAggregateFunction.Sum)
04. 
05.        Dim summaryRowItem As New GridViewSummaryRowItem()
06.        summaryRowItem.Add(betaald)
07.        
08.        Me.RadGridView1.SummaryRowsBottom.Add(summaryRowItem)
09.        Me.RadGridView1.MasterView.SummaryRows(0).PinPosition = PinnedRowPosition.Bottom
10.    End Sub

However I would like to show the summary line at the "true bottom" of the grid, even when the grid contains zero (or just a few) lines as shown in the attached.

How could I achieve this?

 

Kind regards,

Raoul

 

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 10 Apr 2015, 11:31 AM
Hi Raoul,

Thank you for writing.

In order to have the summary row always as last row in the grid, you can remove the pin setting you introduced:
Me.RadGridView1.MasterView.SummaryRows(0).PinPosition = PinnedRowPosition.Bottom

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Raoul
Top achievements
Rank 1
answered on 10 Apr 2015, 12:07 PM

Stefan,

Removing that "PinPosition"-line made the summary line display before the addnewrow (see attached image).
Below the addnewrow is better -which is where I started-, but at the true bottom of the grid is preferred :-)

Regards,
Raoul

 

 

0
Accepted
Stefan
Telerik team
answered on 10 Apr 2015, 03:23 PM
Hi Raoul,

Unfortunately, the grid does not support such a layout and you cannot place the summary row below the new row.

I hope that what you've got will work for you.

Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Raoul
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Raoul
Top achievements
Rank 1
Share this question
or