Freeze summary row at the bottom of gridView

10 posts, 0 answers
  1. esn
    esn avatar
    2 posts
    Member since:
    Aug 2016

    Posted 31 Aug 2016 Link to this post

    Hi,

    Is there a way to make the summary row freeze at the bottom of gridView so it doesn't move in any situation, I added the summary row to the my gridView with below code which works only when the amount of rows are higher than gridView height, but as soon as there are one or two rows in the grid, the summary row sticks to the bottom of the last row but not to bottom of the gridView.

     

    GridViewSummaryRowItem summary =new GridViewSummaryRowItem();
    summary.Add(new GridViewSummaryItem("total", "{0:#,###}", GridAggregateFunction.Sum));
    productGrid.SummaryRowsTop.Add(summary) ;
     
    this.productGrid.MasterTemplate.ShowTotals = true;
    this.productGrid.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Bottom;

  2. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 01 Sep 2016 Link to this post

    Hi,

    Thank you for writing.

    This is the correct way to pin the row. Unfortunately, there is no way to change this and move the row to the bottom when the rows height is smaller than the available height. The only possible solution I can think of is to add details element to the bottom of the grid. We have an example for this in our demo application (see attached image). However, this approach will require to manually calculate the summary items and you may need to update its elements position if the columns are resized. 

    If you have any other questions, please do not hesitate to contact us.

    Regards,
    Dimitar
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  3. ids
    ids avatar
    7 posts
    Member since:
    Jun 2019

    Posted 16 Sep in reply to Dimitar Link to this post

    Dear Dimitar ,

    Could you provide me with the sample .

    Regards .

  4. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 17 Sep Link to this post

    Hi,

    The example code is available in the demo application (see attached). There is a Visual Studio solution with all examples in the installation folder: C:\Program Files (x86)\Progress\Telerik UI for WinForms R2 2019\Examples\QuickStart

    I hope this helps. Should you have any other questions, do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. ids
    ids avatar
    7 posts
    Member since:
    Jun 2019

    Posted 18 Sep in reply to Dimitar Link to this post

    Dear Dimitar's ,

    Could you provide me with a sample to put the summary row at the end of grid (on bottom) .

    I see the example of custom view of grid I need to put another grid in detail area to make a row in bottom .

     

    Regards .

     

     

  6. Dimitar
    Admin
    Dimitar avatar
    2807 posts

    Posted 18 Sep Link to this post

    Hi,

    I have attached a small sample that shows how you can pin the summary row. Let me know how it diffrens from your requirement.

    I am looking forward to your reply.

    Regards,
    Dimitar
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  7. ids
    ids avatar
    7 posts
    Member since:
    Jun 2019

    Posted 06 Oct in reply to Dimitar Link to this post

    Thank you for replay dear dimitar ,

    The sample is nearby for our needs but not what is really need , I need two or three columns beside each other and what is really important also I need to the change the value of summary at run time .

    Regards .

     

  8. ids
    ids avatar
    7 posts
    Member since:
    Jun 2019

    Posted 06 Oct in reply to ids Link to this post

    Also I another important thing when the grid is not filled with rows,I need the summary at the bottom of screen see the attached picture,

    in the attached picture the grid has 5 rows what I need is the summary on bottom of screen .

    regards .

  9. ids
    ids avatar
    7 posts
    Member since:
    Jun 2019

    Posted 06 Oct in reply to ids Link to this post

    Also I another important thing when the grid is not filled with rows,I need the summary at the bottom of screen see the attached picture,
    in the attached picture the grid has 5 rows what I need is the summary on bottom of screen .
    regards .
  10. Nadya
    Admin
    Nadya avatar
    105 posts

    Posted 08 Oct Link to this post

    Hello,

    Thank you for writing back. Actually we have logged a feature request on our Feedback Portal concerning this functionality: https://feedback.telerik.com/winforms/1368000-add-radgridview-allow-pinned-items-position-modification-in-order-to-be-able-to-always-show-the-pinned-summary-row-instead-of-being-show-as-the-last-row-in-the-grid. The fix was introduced in R3 2016 SP1(version 2016.3). Currently, you can control the location of the bottom summary rows by the BottomPinnedRowsMode property. You should set this property to Fixed and the summary row will remain at the bottom of the viewport no matter how many scrollable rows there are in the viewport:

    this.radGridView1.MasterView.SummaryRows[0].PinPosition = PinnedRowPosition.Bottom;
    this.radGridView1.MasterTemplate.BottomPinnedRowsMode = GridViewBottomPinnedRowsMode.Fixed;
    

    More information is available in the following documentation article: https://docs.telerik.com/devtools/winforms/controls/gridview/rows/summary-rows#bottompinnedrowsmode

    I hope this information helps. Should you have any other questions, I will be glad to help.

    Regards,
    Nadya
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top