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

RadAjaxManager not working with UserControl

1 Answer 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
logostech
Top achievements
Rank 1
logostech asked on 23 Jun 2010, 04:31 PM
This was originally posted as a General Feedback support ticket, but I was told that it would be better to post it here.
The original post is below the ************************************************************************************************

Thank you for your reply.
I originally tried to use the regular ASP Update Panel but that required an AjaxScriptManager.  Since my page also has Rad controls on them I needed to use a RadScriptManager, and I was unable to use both.  Therefore to us the RadAjaxManager I used the RadScriptManager.
I have looked at the url you listed below and tried using the RadAjaxManagerProxy without any better results.  I will look at this in more depth to see if there is anything I am missing.

Please let me know what other suggestions you may have.
Thanks
logostech
************************************************************************************************

From: 
Date: 6/23/2010 4:08:49 AM

Hello Don,

Thank you for contacting us.

Could you please try to use regular asp UpdatePanel instead of RadAjaxManager in your User Control and verify if the issue still persists.  Also please confirm that you are placing ScriptManager control in the very top of the main page for properly ajax functioning. You could refer to the following help topic which elaborate on RadAjax and UserControls:
http://www.telerik.com/help/aspnet-ajax/ajxusercontrols.html

Also please note that the purpose of the General Feedback type of tickets is for the customers to share their opinion of our products, support, help and etc. and provide suggestions for further improvements.
The support tickets and forums are used for submitting issues you faced with our controls.
Therefore, for further tracking the problem please start a formal support ticket or a forum thread and we will address your questions as necessary.


Best wishes,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items




From: logostech
Date: 6/21/2010 5:58:42 PM

I have a UserControl that is basically just an ASP button.  The control works fine and I can use the OnClick event to access asp methods.  The problem seems to be when I try to get it to work with a RadAjax Manager.

This is how I have it set up in the Manager:

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

    <AjaxSettings>

 

 

        <telerik:AjaxSetting AjaxControlID="btnGenerate">

 

 

            <UpdatedControls>

 

 

                <telerik:AjaxUpdatedControl ControlID="txt_Text_Message"></telerik:AjaxUpdatedControl>

 

 

            </UpdatedControls>

 

 

        </telerik:AjaxSetting>

 

 

 

    </AjaxSettings>

 

 

 

</telerik:RadAjaxManager>

 

 

 

This is how the control is placed on the page:

 

<

 

btn:Button ID="btnGenerate" runat="server" OnClick="parseHTML_btn_Click" Text="Auto-Generate"

 

 

    FontBold="true" Font="Arial" FontSize="11px" ToolTip="Auto Generate Text Message from HTML Message"

 

 

    OnClientClick="return confirm('This will replace your current text.');" />

 

 

 

 

 

Here is the non-UserControl button I was using:
<
asp:ImageButton ID="btnGenerateOld" runat="server" ImageUrl="Images/auto_generate_wide.gif" onclick="parseHTML_btn_Click" OnClientClick="return confirm('This will replace your current text.');" />


The btnGenerate works fine when it is not in the RadAjaxManager, but of course it does a full page postback.  When it is in the manager it does not do anything.
The btnGenerateOld that I was using works in either the RadAjaxManager or as a full postback.

I have worked with this all day and have just gotten frustrated.  Please help me out.
Thanks,
Don Buck




1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 25 Jun 2010, 12:11 PM
Hi,

Could you please elaborate what do you mean by”I have looked at the url you listed below and tried using the RadAjaxManagerProxy without any better results"? Are you facing any error by using the RadAjaxManagerProxy? Also I could suggest you to set the RadAjaxManager on the main page and use its GetCurrent method on the user control.  The method is also described in the help topic I have previously provided.



Regards,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
logostech
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or