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

Trigger for RadAjaxManager

3 Answers 280 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Enrique Gonzalez
Top achievements
Rank 1
Enrique Gonzalez asked on 26 Mar 2010, 01:25 AM

Previously we used UpdatePanel Asp.net, we are now using RadAjaxManager. We need to exclude certain controls.

In UpdatePanel is solved with "Trigger". What is the solution in telerik?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Mar 2010, 08:34 AM

Hello Enrique,

AJAX Manager comes with a visual builder for setting the relations between the AJAX request initiator and the controls that will be updated. That means AjaxManager ajaxifies the controls that we set by using AjaxSettings.

The following documentation shows how to configure AjaxManager.

AJAX Manager

You can find out the major differences between AjaxManager and Panel control here.

Thanks,

Princy.

0
Sivajith
Top achievements
Rank 1
answered on 27 Dec 2013, 09:46 AM
hi,
i am using rad ajax manager in my page. i want to download files based on certain conditions. but when rad ajax manager and rad ajax update panel are used, the download process is not working. ie the code executes but the file doesn't download at all.
How can i clear this issue.
0
Shinu
Top achievements
Rank 2
answered on 30 Dec 2013, 08:05 AM
Hi Sivajith,

Please have a look into the sample code snippet which works fine at my end.

ASPX:
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black">
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadButton1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadButton1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadButton ID="RadButton1" runat="server" Text="DownLoad File" OnClick="RadButton1_Click">
    </telerik:RadButton>
</telerik:RadAjaxPanel>

C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    System.Threading.Thread.Sleep(100);
    string path = Request.Url.AbsoluteUri.Replace("Default2.aspx", "test.pdf");
    RadAjaxPanel1.ResponseScripts.Add(String.Format(@"window.location.href = ""{0}"";", path));
}

Thanks,
Shinu.
Tags
Ajax
Asked by
Enrique Gonzalez
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Sivajith
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or