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

RadAjaxLoadingPanel stop animation/loading with server side code

1 Answer 292 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
FEST
Top achievements
Rank 1
FEST asked on 13 Jul 2011, 06:17 PM
Hi Forum.

I would like to know a way to stop a radajaxloadingpanel animation/loading with vb(if possible, if not c#?). My problem is the following: hen i hit a button a serie os validations are made, if validation returns false i want o show a tooltip showing some information, while doing the validation i want the radajaxloadingpanel to appear with animation/loading so the person can know that something is happening. From what i can understand, the problem here is that the end of the radajaloadingpanel animation/loading makes a postback of some sort witch makes the tooltip to hide. i tried 2 ways:


If Valido_Dados_Processos(novo_proceso) = True Then
    If MessageBox.Show("Tem a certeza que pretende criar um novo processo?", "Criação de processo", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then
        If Existe_boletim_compProc(rmtb_procesocompanhia.TextWithLiterals, rmtb_apolice.TextWithLiterals, rcb_sinistrado.SelectedValue) Then
            Altera_Processo()
        Else
            Gravar_novo_Processo()
        End If
    End If
Else
    rtt_info_on_error.Visible = True
    rtt_info_on_error.Show()
End If


Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadComplete
    If valido_op_processo = False Then
        rtt_info_on_error.Visible = True
        rtt_info_on_error.Show()
        valido_op_processo = True
    End If
End Sub
Protected Sub rb_alterar_proceso_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles rb_alterar_proceso.Click
    If Valido_Dados_Processos(grava_proceso) = True Then
        If MessageBox.Show("Tem a certeza que pretende alterar o processo?", "Alteração de dados", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then
            If Existe_boletim_compProc(rmtb_procesocompanhia.TextWithLiterals, rmtb_apolice.TextWithLiterals, rcb_sinistrado.SelectedValue) And aux_boletimID <> "" Then
                Altera_Processo()
            Else
                Gravar_novo_Processo()
            End If
        End If
    Else
        valido_op_processo = False
    End If
End Sub

None of them worked, so if anyone could help me i would appreciate very much

Many thanks,
FEST

1 Answer, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 19 Jul 2011, 08:19 AM
Hi Fest,

You can use the approach suggested in the following online documentation article:
Show and hide loading panel explicitly
This is how you can control when to show/hide RadAjaxLoadingPanel.

Regards,
Radoslav
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Ajax
Asked by
FEST
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Share this question
or