﻿var currentLoadingPanel = null;
var currentUpdatedControl = null;

//ctl00_MainContentPlaceHolder_ClassificadosGridView_AjaxLoadingPanel
//ctl00$MainContentPlaceHolder$ClassificadosGridView$AjaxLoadingPanel
//function AjaxRequestStart(sender, args)
function MyAjaxRequestStart()
{
    currentLoadingPanel = RadAjaxNamespace.LoadingPanels["ctl00_MainContentPlaceHolder_ClassificadosGridView_AjaxLoadingPanel"];

    currentUpdatedControl = "ctl00_MainContentPlaceHolder_ClassificadosGridView_RadAjaxPanel";

    //show the loading panel over the updated control
    currentLoadingPanel.Show(currentUpdatedControl);
}

function AjaxResponseEnd()
{
    //hide the loading panel and clean up the global variables
    if (currentLoadingPanel != null)
        currentLoadingPanel.Hide(currentUpdatedControl+"_wrapper"); 

    currentUpdatedControl = null;
    currentLoadingPanel = null;
}
    


