AutoCompleteBox add control programmatically error

4 posts, 0 answers
  1. Giang
    Giang avatar
    2 posts
    Member since:
    May 2011

    Posted 27 May 2013 Link to this post

    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.
     
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 30 May 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Arwad
    Arwad avatar
    3 posts
    Member since:
    Jan 2014

    Posted 07 Jan 2014 Link to this post

    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?
  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 10 Jan 2014 Link to this post

    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.
Back to Top