i want to set the height of chart dynamically depending upon the size of rows. here is the code
But height remain the same as it was initialize which is zero.
Thank,
-Saqib
private void chart1_NeedDataSource(object sender, System.EventArgs e)
{
Telerik.Reporting.Processing.Chart chart =
(Telerik.Reporting.Processing.Chart)sender;
Telerik.Reporting.Chart chartDefinition = (Telerik.Reporting.Chart)chart.ItemDefinition;
chartDefinition.Height = new Telerik.Reporting.Drawing.Unit(50, Telerik.Reporting.Drawing.UnitType.Inch);
chartDefinition.Height = new Telerik.Reporting.Drawing.Unit(6, Telerik.Reporting.Drawing.UnitType.Inch);
//
chartDefinition.Height = new Telerik.Reporting.Drawing.Unit(this.tableTopEmployees.Items.Count, Telerik.Reporting.Drawing.UnitType.Inch);
}
Thank,
-Saqib