DataTable column width

Thread is closed for posting
3 posts, 0 answers
  1. SoD
    SoD avatar
    8 posts
    Member since:
    Nov 2008

    Posted 03 Jan 2009 Link to this post

    PrintScreen

    Above the screenshot of the grapich output.

    My problem is that in the dataTable the values are mixed the values cannot be readable. I want to set the datatable columns width for enlarge the columns to make more readable. This has more prioirty. If we cannot do it, we will not buy this control suit. This is the bigger problem for our company.
  2. SoD
    SoD avatar
    8 posts
    Member since:
    Nov 2008

    Posted 03 Jan 2009 Link to this post

    I found the PlotArea.DataTable.Apperance ... All the things in it ...
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 05 Jan 2009 Link to this post

    Hi Fatih,

    You can set the RadChart1.PlotArea.DataTable.Appearance.Dimensions.AutoSize to false and  RadChart1.PlotArea.DataTable.Appearance.RenderType property to  TableRenderType.CellFixedSize. Now you can set the RadChart1.PlotArea.DataTable.Appearance.CellHeight and RadChart1.PlotArea.DataTable.Appearance.CellWidth properties and the table size will depend on these settings. You will also need to set Position.Auto to false and provide the datatable position through the Position.X and Position.Y properties.

    However, this way the datatable might not match the X axis, especially if the CellWidth is greater than the space occupied by a single X axis item. A possible workaround is to leave the datatable auto-sized, but format the data, so that it is rounded to second or third decimal. For this you will need to set the DefaultLabelValue property of the ChartSeries like this: mySeries.DefaultLabelValue = "#Y {F2}". This will make the datatable more readable, while it still conforms with the X axis items width.

    Greetings,
    Ves
    the Telerik team

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