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

message box with telerik.wincotrols.radelement.backgroundshape

2 Answers 74 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Temp
Top achievements
Rank 1
Temp asked on 02 Sep 2012, 05:51 PM
And also a question how to create header for the chart?

I'm trying to add radchartview to my form but manually(without using toolbox).
But when I run my application and when I press button to call my form with radchartview I've got messagebox with 
telerik.wincontrols.radelement.backgroundshape.

What's the problem? My code in initializecomponent
this.radChartView1 = new RadChartView();
((System.ComponentModel.ISupportInitialize)(this.radChartView1)).BeginInit();
 
this.SuspendLayout();
 
this.radChartView1.Size = new System.Drawing.Size(592, 336);
this.radChartView1.TabIndex = 10;
this.radChartView1.Name = "radChartView1";
this.radChartView1.AutoScroll = true;
this.radChartView1.Location = new System.Drawing.Point(0, 0);
this.radChartView1.Anchor =
    ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    | System.Windows.Forms.AnchorStyles.Left)
    | System.Windows.Forms.AnchorStyles.Right)));
this.ClientSize = new Size(592, 373);
this.Controls.Add(this.radChartView1);
this.Name = "KLDChart";
this.Text = "KLDReport";
this.Load += new System.EventHandler(this.KLDChart_Load);
this.Controls.SetChildIndex(this.radChartView1, 0);
((System.ComponentModel.ISupportInitialize)(this.radChartView1)).EndInit();
this.ResumeLayout(false);

2 Answers, 1 is accepted

Sort by
0
Temp
Top achievements
Rank 1
answered on 03 Sep 2012, 03:35 PM
it fails on 
this.Controls.Add(this.radchartview1);//why it fails?
0
Accepted
Stefan
Telerik team
answered on 04 Sep 2012, 08:12 AM
Hello,

Thank you for writing.

Attached you can find a sample project demonstrating how to achieve the desired scenario. If you have any additional questions, do not hesitate to write back.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
ChartView
Asked by
Temp
Top achievements
Rank 1
Answers by
Temp
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or