Hi
I have a page where dinamically load a usercontrol when a menu item is clicked:
In both usercontrol there is a RadComboBox with EnableLoadOnDemand set to true.
Both usercontrol work great if are defined statically in the page.
Please could you help me to solve it?
Cristian
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