Hello,
I start with Telerik, and i woul'd like to put Telerik controls into webcontrol.
i have try many solution, but no one display me the result in the design mode.
I have an error : "Error Creating Control " "Object reference not set to an instance of an object."
but when I run the webpage, i see my Telerik control.
do you have an idea for this problems ?
my code :
| Public Class Class11 |
| Inherits System.Web.UI.WebControls.WebControl |
| Protected WithEvents RadComboBox2 As Global.Telerik.Web.UI.RadComboBox |
| Public Sub New() |
| MyBase.new() |
| RadComboBox2 = New Telerik.Web.UI.RadComboBox |
| RadComboBox2.ID = "toto" |
| End Sub |
| Protected Overrides Sub Render(ByVal output As System.Web.UI.HtmlTextWriter) |
| RadComboBox2.RenderControl(output) |
| MyBase.CreateChildControls() |
| End Sub |
| Protected Overrides Sub CreateChildControls() |
| Me.Controls.Clear() |
| Me.Controls.Add(RadComboBox2) |
| End Sub |
thanks a lot !!!