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

How to grey out the grid and disable while loading

2 Answers 212 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ajmal
Top achievements
Rank 1
ajmal asked on 14 Dec 2010, 08:03 AM
Hello All,

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;}

 

}

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 17 Dec 2010, 02:35 PM
Hello ajmal,

Showing RadAjaxLoading panel will prevent user interaction while server process the request.

All the best,
Nikolay
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Lp1
Top achievements
Rank 1
answered on 03 Jun 2011, 03:41 PM
Does anybody know if the same can be done with MVC ajax grids?
Tags
Grid
Asked by
ajmal
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Lp1
Top achievements
Rank 1
Share this question
or