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

footer text font style

3 Answers 352 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allen
Top achievements
Rank 1
Allen asked on 02 Nov 2012, 09:06 AM
Hi
     I have a boundcolumn in which Im showing aggregate at the footer. How can I make this footer text bold.
thanks
allen

3 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 02 Nov 2012, 09:09 AM
Hello,


<telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID" Aggregate="Count">
                       <FooterStyle Font-Bold="true" />
                   </telerik:GridBoundColumn>


OR

<style type="text/css">
      .MyClass
      {
          font-weight: bold;
      }
  </style>
<telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID" Aggregate="Count">
                       <FooterStyle CssClass="MyClass" />
                   </telerik:GridBoundColumn>


Thanks,
Jayesh Goyani
0
Allen
Top achievements
Rank 1
answered on 02 Nov 2012, 09:28 AM
thanks, that helps. but then is there a solution in code behind for making all footer item to bold
0
Accepted
Shinu
Top achievements
Rank 2
answered on 02 Nov 2012, 09:30 AM
Hi,

Please try the following Code snippet to make all the footer item to bold.

C#:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridFooterItem)
    {
        GridFooterItem groupFooter = (GridFooterItem)e.Item;
        groupFooter.Style.Add("font-weight", "bold");
    }
}

Thanks,
Shinu.
Tags
Grid
Asked by
Allen
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Allen
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or