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

Problem with asp:chart example

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mart
Top achievements
Rank 1
Mart asked on 06 Apr 2011, 09:54 AM
Hello I want to use the asp:chart sample  in VB but i can't get  me.picturebox.ItemDataBinding in my application
it is not available

 

 

in designer.vb my code is

Me
.PictureBox1 = New Telerik.Reporting.PictureBox

 

 

 

'PictureBox1

 

 

Me.PictureBox1.Location = New Telerik.Reporting.Drawing.PointU(New Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Cm), New

Telerik.Reporting.Drawing.Unit(42.799999237060547, Telerik.Reporting.Drawing.UnitType.Cm))

 

Me.PictureBox1.Name = "PictureBox1"

 

 

 

 

 

Me.PictureBox1.Size = New Telerik.Reporting.Drawing.SizeU(New Telerik.Reporting.Drawing.Unit(13.500100135803223, Telerik.Reporting.Drawing.UnitType.Cm), New
Telerik.Reporting.Drawing.Unit(10.000002861022949, Telerik.Reporting.Drawing.UnitType.Cm))

 

Me.PictureBox1. ??????

 

 

Private

 

PictureBox1 As Telerik.Reporting.PictureBox

 

 

 

at the ??? there is no Itemdatabinding available

I use picturebox 4.0.10.423

The sample you provided works without any problem. But above code us used in a separate class and causes problems

Please help,

Mart

1 Answer, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 08 Apr 2011, 04:44 PM
Hi, I am not an expert in VB but from my understanding in VB this is the way handle events. 
  
Private Sub PictureBox1_ItemDataBinding(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.ItemDataBinding
 
 
  End Sub


Just add directly your handler in the report's code behind. http://www.exforsys.com/tutorials/vb.net-2005/event-handling-in-visual-basic-.net-2005.html
Tags
General Discussions
Asked by
Mart
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
Share this question
or