How to grey out the grid and disable while loading

3 posts, 0 answers
  1. ajmal
    ajmal avatar
    57 posts
    Member since:
    Oct 2006

    Posted 14 Dec 2010 Link to this post

    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. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 17 Dec 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lp1
    Lp1 avatar
    25 posts
    Member since:
    Apr 2011

    Posted 03 Jun 2011 Link to this post

    Does anybody know if the same can be done with MVC ajax grids?
Back to Top