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

AutoCompleteBox add control programmatically error

3 Answers 85 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Giang
Top achievements
Rank 1
Giang asked on 27 May 2013, 10:49 PM
I have:
1. An user control: Pub.ascx. The user control has a RadAutoCompleteBox. I bind data for the RadAutoCompleteBox in Page_Load event of Pub.ascx.
2. A webpage: Test.aspx. The page has a button btnAdd and a panel pnlPubs. When I click on Add, the page load user control Pub.ascx then add it to the panel pnlPubs.

Now I can see the user control Pub.ascx on the panel. However, when I try to use the RadAutocompleteBox, it shows me error:
"The target 'ctl02$rbConf' for the callback could not be found or did not implement ICallbackEventHandler."

Would you please help me solving this problem? I really need to add AutoCompleteBox programmatically.

Thank you.
 

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 30 May 2013, 01:12 PM
Hello Giang,

When a control is added dynamically, it's not persisted across postbacks/callbacks which is the reason for the experienced behavior. Here is a forum thread discussing the same problem, but with a RadComboBox control.
 
Regards,
Dimitar Terziev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Arwad
Top achievements
Rank 1
answered on 07 Jan 2014, 10:50 AM
I am trying to use RAdControl (RadAutoCompleteBox), in my webpart (sharepoint 2010), but it gave me error ( there was an error in the callback.0|[]_$$_).

you can check the error in the attached image.

can you help?
0
Dimitar Terziev
Telerik team
answered on 10 Jan 2014, 08:20 AM
Hello Arwad,

The provided screenshot does not provide sufficient information about the reason for the experienced problem. Could you share a bit more information about your particular scenario, the declaration of the control and the way its been populated?

Regards,
Dimitar Terziev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AutoCompleteBox
Asked by
Giang
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Arwad
Top achievements
Rank 1
Share this question
or