Attach is my grid which uses AjaxLoadingPanel, on row click, below code is executed.
I need gray out/disable the grid while below code is ececuted and enable the grid while all code execution done for below code.
Is there any way to do? Please help...
protected
override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
{
try
{
base.RaisePostBackEvent(source, eventArgument);
if (source == this.grdADInbox && eventArgument.IndexOf("RowDblClicked") != -1)
{
Session[
"strApproveUrl"] = null;
Session[
"strRejectUrl"] = null;
Session[
"TranType"] = null;
RadGrid rg = (RadGrid)source;
int index = int.Parse(eventArgument.Split(':')[1]);
mvTransaction.ActiveViewIndex = 0;
rtsADItem.SelectedIndex = 0;
divAction.Visible =
true;
Decimal transaction_Key = Convert.ToDecimal(rg.Items[index].OwnerTableView.DataKeyValues[index]["Tran_Key"]);
hdnTranKey.Value =
Convert.ToString(transaction_Key);
hdnTranType.Value = (
string) rg.Items[index].OwnerTableView.DataKeyValues[index]["TransactionType"];
Session[
"TranType"] = hdnTranType.Value;
//load attachment
LoadAttachment();
ViewState[
"islinkkVisible"] = true;
//load transaction detail
LoadTransactionDetail();
Session[
"strApproveUrl"] = "ApproveAction.aspx?action=Approve&&Tran_Key=" + transaction_Key + "&&Current_Step=" + rg.Items[index]["CurrentStep"].Text;
Session[
"strRejectUrl"] = "ApproveAction.aspx?action=Reject&&Tran_Key=" + transaction_Key + "&&Current_Step=" + rg.Items[index]["CurrentStep"].Text;
btnApprove.Attributes.Add(
"onclick", "return ShowApprovalPopUp('" + Convert.ToString(Session["strApproveUrl"]) + "');");
btnReject.Attributes.Add(
"onclick", "return ShowApprovalPopUp('" + Convert.ToString(Session["strRejectUrl"]) + "');");
}
}
catch (Exception ex) {
throw ex;}
}