DataGrid Text Size

Thread is closed for posting
2 posts, 1 answers
  1. Jamie
    Jamie avatar
    9 posts
    Member since:
    Dec 2008

    Posted 03 Feb 2009 Link to this post

    Is there a way to set the size of the text in a datagrid for a chart?  Seems an easy thing, but I've been digging around and haven't found anything.

    Thanks,
    Jamie
  2. Answer
    Velin
    Admin
    Velin avatar
    391 posts

    Posted 05 Feb 2009 Link to this post

    Hi Jamie,

    You can adjust the font size of the data shown in the DataTable object via the "PlotArea.DataTable.Appearance.TextProperties.Font.Size" property. Here is a sample code demonstrating this in code behind and declaratively:

    //code behind 
    chart.PlotArea.DataTable.Appearance.TextProperties.Font.Size = 15
     
    //declaratively 
    <PlotArea> 
        <DataTable Visible="True"
            <Appearance TextProperties-Font="Verdana, 15pt" /> 
        </DataTable> 
    </PlotArea> 
     

    Kind regards,
    Velin
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top