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

How to change font of AddNewRecordText

2 Answers 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Salman
Top achievements
Rank 1
Salman asked on 17 Mar 2011, 08:36 PM
Hi
I want change font of

AddNewRecordText for my grid
what do?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Mar 2011, 05:46 AM
Hello Salman,

You can add the following CSS in your page. But it will also change the font size of Refresh button.

CSS:
<style type="text/css">
  .rgCommandRow a
    {
     font-size: xx-large;
    }
</style>

If you want to change the fontsize of AddNewRecord button only, try the following code.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
 {
     if (e.Item is GridCommandItem)
     {
         GridCommandItem cmdItem = (GridCommandItem)e.Item;
         LinkButton addbtn = (LinkButton)cmdItem.FindControl("InitInsertButton");
         addbtn.Style["font-size"] = "x-large";
      }
 }

Thanks,
Princy.
0
Salman
Top achievements
Rank 1
answered on 19 Mar 2011, 08:37 AM
Hi Princy
Thank you .It's fine Work.
Tags
Grid
Asked by
Salman
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Salman
Top achievements
Rank 1
Share this question
or