Footer in Radgrid

7 posts, 0 answers
  1. Jiju
    Jiju avatar
    57 posts
    Member since:
    Jul 2011

    Posted 21 Nov 2011 Link to this post

    Hello

    How can we set a footer which is common for all columns in a  radgrid? The footer should be visible within the grid above pagination as shown in the figure.

    Thanks in advance.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Nov 2011 Link to this post

    Hello,

    You can set ShowFooter property of RadGrid as true.

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jiju
    Jiju avatar
    57 posts
    Member since:
    Jul 2011

    Posted 21 Nov 2011 Link to this post

    Thanks for your response.

    Hope you couldn't understand my question. The ShowFooter property is already set to true. But the FooterText can be set only for individual columns. My need is to set a common footer for all the columns, not for a single column.

  5. Kurt Kluth
    Kurt Kluth avatar
    144 posts
    Member since:
    Oct 2009

    Posted 08 Apr 2014 Link to this post

    Was there ever a solution for this?  I would like to stretch the footer over the width of all the columns my radgrid.
  6. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Apr 2014 in reply to Kurt Kluth Link to this post

    Hi Kurt Kluth,

    ​You can try out the following code to extend your footer cell over other cells by increasing the column span as shown below:
    C#:
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridFooterItem)
        {
            int colIndex = RadGrid1.MasterTableView.GetColumn("ColumnUniqueName").OrderIndex;
            GridFooterItem footer = (GridFooterItem)e.Item;
            footer["ColumnUniqueName"].ColumnSpan = 4;
            for (int i = (colIndex + 1); i < colIndex + 3; i++)
            {
                footer.Cells[i].Visible = false;
            }
        }
    }

    Thanks,
    Shinu
  7. Kurt Kluth
    Kurt Kluth avatar
    144 posts
    Member since:
    Oct 2009

    Posted 14 Apr 2014 in reply to Shinu Link to this post

    Thank you for the code and it did work however I am curious if there is a work around if I were to freeze the 1st two columns.  The text appears to shrink when scrolling the other columns. 
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Apr 2014 Link to this post

    Hello Kurt,

    Could you pleas elaborate a bit more on what the exact scenario you are implementing is and what is the issue you are facing in expanding the footer cell?
    Sending us the RadGrid markup and a  screenshot that presents the problem will help us provide straight to the point solution for your case.

    Regards,
    Maria Ilieva
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017