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.
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.
6 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 21 Nov 2011, 01:09 PM
Hello,
You can set ShowFooter property of RadGrid as true.
Thanks,
Princy.
You can set ShowFooter property of RadGrid as true.
Thanks,
Princy.
0
Jiju
Top achievements
Rank 1
answered on 21 Nov 2011, 01:25 PM
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.
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.
0
Kurt Kluth
Top achievements
Rank 1
answered on 08 Apr 2014, 03:38 PM
Was there ever a solution for this? I would like to stretch the footer over the width of all the columns my radgrid.
0
Shinu
Top achievements
Rank 2
answered on 09 Apr 2014, 08:55 AM
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#:
Thanks,
Shinu
​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
0
Kurt Kluth
Top achievements
Rank 1
answered on 14 Apr 2014, 02:33 PM
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.
0
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
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.