Summary row on _true_ bottom of grid?

4 posts, 1 answers
  1. Raoul
    Raoul avatar
    33 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2015 Link to this post

    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

     

     

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 Apr 2015 Link to this post

    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.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Raoul
    Raoul avatar
    33 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2015 in reply to Stefan Link to this post

    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

     

     

  5. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 10 Apr 2015 Link to this post

    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.

     
Back to Top