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

Problem with RadAjaxManager and RadAlert

1 Answer 136 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
gonzalo
Top achievements
Rank 1
gonzalo asked on 30 Dec 2008, 03:32 PM
Hi,
I have a problem when I show a radalert and later when I select an item from the radcombobox the radalert come
back again, how can I fix this problem?

code:
RadAjaxManager1.ResponseScripts.Add("Sys.Application.add_load(function()" & Chr(13) & "" & Chr(10) &"{radalert('Diligencia Insertada', 250, 150);})")

the control radcombobox is with radajaxmanager and not with postback.
code:

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

            <AjaxSettings>

                <telerik:AjaxSetting AjaxControlID="Cmb_Usuario_Responsable">

                    <UpdatedControls>

                        <telerik:AjaxUpdatedControl ControlID="Cmb_Numero_Planilla"LoadingPanelID="RadAjaxLoadingPanel1" />

                    </UpdatedControls>

                </telerik:AjaxSetting>

            </AjaxSettings>

        </telerik:RadAjaxManager>

        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

            Width="75px">

            <img alt="Loading..." src=' <%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading7.gif")  %>'

                style="border: 0px;" />

        </telerik:RadAjaxLoadingPanel>



thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Dec 2008, 03:46 PM
Hello gonzalo,

You do not need Sys.Application.add_load. Currently you have added event handler which will be executed on initial load and after every ajax request. Here is an example how to achieve your goal:

RadAjaxManager1.ResponseScripts.Add("radalert('Diligencia Insertada', 250, 150);")

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
gonzalo
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or