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

DataTable column width

2 Answers 131 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
SoD
Top achievements
Rank 2
SoD asked on 03 Jan 2009, 12:23 PM
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 Answers, 1 is accepted

Sort by
0
SoD
Top achievements
Rank 2
answered on 03 Jan 2009, 06:36 PM
I found the PlotArea.DataTable.Apperance ... All the things in it ...
0
Ves
Telerik team
answered on 05 Jan 2009, 10:31 AM
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.
Tags
Chart (Obsolete)
Asked by
SoD
Top achievements
Rank 2
Answers by
SoD
Top achievements
Rank 2
Ves
Telerik team
Share this question
or