Hi,
I'm creating a control dynamically with a lot of child controls (ex dropdownlists).
DropDownListControl ddlControl = (DropDownListControl)this.LoadControl("FormControls/DropDownListControl.ascx"); |
ddlControl.ID = "ddlControl_" + groupTable.Rows.Count + "_" + columnIndex; |
RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(this, ddlControl); |
With that last sentence I thougth the update the dynamic created dropdownlists if the parent usercontrol (this) was changed.
When I run this code and change the parent usercontrol he gives me the following exception:
Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ddlControl_1_0Panel'. If it is being updated dynamically then it must be inside another UpdatePanel.
Can anyone tell me how I have to solve this without losing the creation of the dynamic child controls?
Thanks
Bert