Hello All,
I am using a Rad Grd in my Program ,I want the program requirement is that the AjaxLoadingPanel must be shown only when the ExpandCollapseEvent gets fired of the RadGrid for that I want to fetch the Id of the ExpandCollapse in javascript because I am using the following code
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
var currentLoadingPanel = null;
var currentUpdatedControl = null;
function RequestStart(sender, args)
{
currentLoadingPanel = $find("RadAjaxLoadingPanel1");
if (args.get_eventTarget() == "Button1")
{
currentUpdatedControl = "Panel1";
}
else
{
currentUpdatedControl = "Panel2";
}
//show the loading panel over the updated control
currentLoadingPanel.show(currentUpdatedControl);
}
function ResponseEnd()
{
//hide the loading panel and clean up the global variables
if (currentLoadingPanel != null)
currentLoadingPanel.hide(currentUpdatedControl);
currentUpdatedControl = null;
currentLoadingPanel = null;
}
</script>
</telerik:RadCodeBlock>
For that I will need that Please suggest me the answer..
Thankx in advance
Ritzie