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

Combobox ICallbackEventHandler problem

1 Answer 109 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Cristian
Top achievements
Rank 1
Cristian asked on 17 Jun 2009, 03:47 PM
Hi

I have a page where dinamically load a usercontrol when a menu item is clicked:

Protected

 

Sub menu_MenuItemClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.MenuEventArgs) Handles Tabs.MenuItemClick

 

 

 

Dim

 

ucName As String = ""

 

Select

 

Case menuTabs.SelectedValue

 

 

Case "A"

 

ucName =

"~/UserControlA.ascx"

 

 

Case "B"

 

ucName =

"~/UserControlB.ascx"

 

 

End Select

 

 

 

'phCurrentUC is a placeholder control

 

phCurrentUC.Controls.Clear()

 

If Not String.IsNullOrEmpty(ucName) Then

 

 

 

 

 

 

Dim ucToLoad As Control = LoadControl(ucName)

 

phCurrentUC.Controls.Add(ucToLoad)

 

 

End If

 

 

 

End Sub

 


In both usercontrol there is a RadComboBox with EnableLoadOnDemand set to true.

 

When click on combobox, I get "The target xxx$radcombox1' for the callback could not be found or did not implement ICallbackEventHandler."
Both usercontrol work great if are defined statically in the page.
Please could you help me to solve it?

Cristian

1 Answer, 1 is accepted

Sort by
0
tparus
Top achievements
Rank 1
answered on 30 Jun 2009, 10:11 PM
Tags
ComboBox
Asked by
Cristian
Top achievements
Rank 1
Answers by
tparus
Top achievements
Rank 1
Share this question
or