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

Radgrid CommandItem Font Issue

1 Answer 98 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 10 Mar 2009, 07:39 AM
Hi All,

I am facing an issue with changing font in Radgrid command item.

I want to change font size of Button 'Add New record' in Radgrid.
I tried with the options like setting properties from radgrid,Mastertableview,both radgrid and Mastertableview.
I am able to change then backcolor,font name but font size is not baing changed at all.

Can anyone help me in this please?

Thanx in advance.

Best Regards,
Hrushikesh.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Mar 2009, 08:48 AM
Hi Hrushikesh,

Try the following code snippet to set the font size of the GridCommanditem and see if it works.

CS:
 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridCommandItem) 
        { 
            GridCommandItem cmdItem = (GridCommandItem)e.Item; 
            cmdItem.Font.Size = FontUnit.Large; 
        } 
 } 


Thanks
Shinu.
Tags
Grid
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or