RowHeight and Font not applied...

4 posts, 1 answers
  1. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 26 Jan 2010 Link to this post

    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
  2. Kalin Milanov
    Admin
    Kalin Milanov avatar
    447 posts

    Posted 27 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 27 Jan 2010 Link to this post

    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
  5. Answer
    Kalin Milanov
    Admin
    Kalin Milanov avatar
    447 posts

    Posted 01 Feb 2010 Link to this post

    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.
Back to Top