RadAjaxManager with AutoCompleteExtender

3 posts, 0 answers
  1. Alex
    Alex avatar
    5 posts
    Member since:
    Nov 2011

    Posted 03 Dec 2012 Link to this post

    I'm in the process of stripping out update panels and replacing them with the RadAjaxManager control, I'm having difficulty getting the AutoCompleteExtender to fire though. Used to work fine till I took the update panel out. What's the correct procedure for this?

    I've tried this RadAjaxManager setting but it doesn't work:-

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="ConsigneeTxt">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="ConsigneeTxt" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
             </AjaxSettings>
        </telerik:RadAjaxManager>

    Here's the applicable html:-

    <asp:TextBox ID="TestTxt" runat="server" AutoPostBack="true"></asp:TextBox>
    <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID="TestTxt" WatermarkText="Start typing..." runat="server" WatermarkCssClass="WaterMarked"></asp:TextBoxWatermarkExtender>
    <asp:AutoCompleteExtender ID="AutoCompleteExtender1" CompletionInterval="250" runat="server" MinimumPrefixLength="2" ServiceMethod="GetName" ServicePath="~/WebService8.asmx"  TargetControlID="TestTxt" UseContextKey="true"></asp:AutoCompleteExtender>

    Thanks!
  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 06 Dec 2012 Link to this post

    Hi Alex,

    Could you please let me know what the "ConsigneeTxt" control added in the RadAjaxManager setting is? I would suggest you to try wrap the target textbox as well as the related extender controls into regular asp panel and add this Panel to update itself in the RadAjaxManager settings.

    All the best,
    Maria Ilieva
    the Telerik team
    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. Alex
    Alex avatar
    5 posts
    Member since:
    Nov 2011

    Posted 12 Dec 2012 Link to this post

    Hi,

    Thanks for getting back to me. That seems to do the job. Thanks.
Back to Top