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

RowHeight and Font not applied...

3 Answers 67 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marc Roussel
Top achievements
Rank 2
Marc Roussel asked on 26 Jan 2010, 07:15 PM
Hi,

I don't know what I'm doing wrong but I tried 2 things.  Changing the RowHeight to 50 and changed the font size to 22 but at runtime there's nothing changed.

How do I :

1) Change the height of the rows
2) Change the font size of the rows

Thank you

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 27 Jan 2010, 11:15 AM
Hello Marc Roussel,

You can change the font size of the grid by using the FontSize property and set it to 22.
For changing the height of the row you can use the RowStyle property, define a style and set the Height to 50 in the style setter.

Below is a sample code which achieves just that. I hope you will find it useful.
<UserControl.Resources>
  <Style x:Key="GridViewRowStyle" TargetType="grid:GridViewRow">
    <Setter Property="Height" Value="50" />
  </Style>
</UserControl.Resources>
  
<Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
  <telerik:RadGridView ItemsSource="{Binding Collection}" FontSize="22" RowStyle="{StaticResource GridViewRowStyle}"/>
</Grid>


All the best,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Marc Roussel
Top achievements
Rank 2
answered on 27 Jan 2010, 11:18 AM
Thank you for the Font.  It works now.
For the RowHeight, does that mean, the RowHeight property in Blend 3 Miscellaneous doesn't do anything good ?
If so why it's there ?

Thank you
0
Accepted
Kalin Milanov
Telerik team
answered on 01 Feb 2010, 11:06 AM
Hello Marc Roussel,

The RowHeigh property should indeed set the height of the row. It seems there is an issue with it and we will be fixing it for Q1. Thank you for spotting this for us.

Regards,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Marc Roussel
Top achievements
Rank 2
Answers by
Kalin Milanov
Telerik team
Marc Roussel
Top achievements
Rank 2
Share this question
or