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

RadAjaxManager with AutoCompleteExtender

2 Answers 66 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 Dec 2012, 03:52 PM
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 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Dec 2012, 11:14 AM
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.
0
Alex
Top achievements
Rank 1
answered on 12 Dec 2012, 11:37 AM
Hi,

Thanks for getting back to me. That seems to do the job. Thanks.
Tags
Ajax
Asked by
Alex
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Alex
Top achievements
Rank 1
Share this question
or