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

GridDateTimeColumn: How to change font size

1 Answer 94 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 20 May 2014, 02:49 PM
I can't seem to change the Font size or the calendar icon size or anything inside the GridDateTimeColumn. What am I missing. I am using a skin, but I stilll should be able to change the font.

Tom

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 May 2014, 08:48 AM
Hi Tom,

I guess you want to change the Font-size of DateInput of GridDateTimeColumn. Incase you are using it for filtering, check the below code snippet.

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
  if (e.Item is GridFilteringItem)
  {
    GridFilteringItem filterItem = (GridFilteringItem)e.Item;
    RadDatePicker rdpDateColumn = (RadDatePicker)filterItem["ColumnUniqueName"].Controls[0];
    rdpDateColumn.DateInput.Font.Size = System.Web.UI.WebControls.FontUnit.Small;
  }
}

Thanks,
Princy
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or