[CLOSED] Grid Mask Not Showing

  1. #1

    [CLOSED] Grid Mask Not Showing

    Hi,

    Herewith i have attached for screenshots my problem when binding grid.
    Business Logic:
    I will fill the detail section [below grid] once I will be selected a row from top grid.

    Step-1:
    I have selected a row from top grid and then showing mask it is fine.
    Click image for larger version. 

Name:	step-1.jpg 
Views:	179 
Size:	10.2 KB 
ID:	1354
    Step-2:
    Still the detail section for detail grid is not filling the records, but mask is not showing. Detail grid having 1250 records.
    Click image for larger version. 

Name:	step-2.jpg 
Views:	132 
Size:	12.2 KB 
ID:	1355

    Step-3:
    Finally the detail grid has filled without showing mask. This process will take more than 1 to 2 minutes.
    Click image for larger version. 

Name:	step-3.jpg 
Views:	145 
Size:	23.8 KB 
ID:	1356

    The following methods i have used to bind the detail grid
    protected void RowSelection(object sender, AjaxEventArgs e)
        {
            Coolite.Ext.Web.Mask.Instance.Show();
            RowSelectionModel sm = this.GrdPnl1NotEditable.SelectionModel.Primary as RowSelectionModel;
            sm.SingleSelect = true;
            DisableGridDetButtons(false);
            foreach (SelectedRow row in sm.SelectedRows)
            {
                Session["Shipment_List_RowIndex"] = row.RowIndex;
                this.ScriptManager1.AddScript("SelectedRowIndex = '" + row.RowIndex + "';");
                EnableDisableGridDetCtrl(false, true);
                Btn_Delete1.Disabled = false;
                Btn_Delete2.Disabled = true;
                Btn_Delet_tk.Disabled = true;
            }
            string LStr_json = e.ExtraParams["Values"];
            string[] Lses = new string[100];
            string[] Lcno = new string[10];
            Lses = LStr_json.Split(',');
            if (Lses.Length >= 2)
            {
                Lcno = Lses[1].Split(':');
                if (Lcno.Length == 2)
                {
                    string[] hiden = new string[10];
                    if (Lcno[1] != null && Lcno[1].ToString() != "")
                    {
                        hiden = Lcno[1].Split('"');
                        if (hiden[1] != "" && hiden[1] != null)
                        {
                            hdn_SelectedPos.Text = hiden[1].ToString();
                        }
                    }
                    if (Session["Pos_Grid_Reload"] != null && Session["Pos_Grid_Reload"].ToString() == "1")
                        Session["Pos_Grid_Reload"] = null;
                    int intAutoKey = 0;
                    if (EPCSessionManagement.ShipmentNormalViewAutoKey != null)
                        intAutoKey = Convert.ToInt32(EPCSessionManagement.ShipmentNormalViewAutoKey.ToString());
     
                    if (Lcno[1].Replace('"', ' ').Trim() != "")
                        BindGrid(intAutoKey, true, Convert.ToInt32(Lcno[1].Replace('"', ' ')), false);
                    else
                        BindGrid(intAutoKey, false, 0, false);
                }
            }
            this.ScriptManager1.AddScript("CanDeleteEnable();");
            Coolite.Ext.Web.Mask.Instance.Hide();
        }
    The following properties i have used in top gridpanel in aspx page.
    <SelectionModel>
    <ext:CheckboxSelectionModel ID="RowSelectionModel2" SingleSelect="true" runat="server">
    <AjaxEvents>
    <RowDeselect OnEvent="RowDeSelection" ShowWarningOnFailure="false" Timeout="120000">
    </RowDeselect>
    <RowSelect OnEvent="RowSelection" ShowWarningOnFailure="false" Timeout="120000">
    <ExtraParams>
    <ext:Parameter Name="Values" Value="Ext.encode(#{GrdPnl1NotEditable}.getRowsValues(true,false,false,true))"
    Mode="Raw" />
    </ExtraParams>
    </RowSelect>
    </AjaxEvents>
    </ext:CheckboxSelectionModel>
    </SelectionModel>
    Last edited by geoffrey.mcgill; Jul 09, 2010 at 11:05 PM.
  2. #2
    Hi,

    1. You have to show mask in the Before handler of the RowSelect otherwise (if show mask before binding) the binding procces will not allow redraw the page because all browser resources are occupied by pasing and binding data
    Before="Coolite.Ext.Mask.show();"
    Remove on the server side
    Coolite.Ext.Web.Mask.Instance.Show();
    and hide mask in the server side after binding (like in your example)
    /*here is bind code*/
    Coolite.Ext.Web.Mask.Instance.Hide();
    2. Why do you bind so much data? Use remote paging
  3. #3

    Grid Mask Not Showing

    Quote Originally Posted by vladimir View Post
    Hi,

    1. You have to show mask in the Before handler of the RowSelect otherwise (if show mask before binding) the binding procces will not allow redraw the page because all browser resources are occupied by pasing and binding data
    Before="Coolite.Ext.Mask.show();"
    Remove on the server side
    Coolite.Ext.Web.Mask.Instance.Show();
    and hide mask in the server side after binding (like in your example)
    /*here is bind code*/
    Coolite.Ext.Web.Mask.Instance.Hide();
    2. Why do you bind so much data? Use remote paging
    Hi,

    I have removed show mask in code behind and added before event in row selection to show the mask.

    Still the detail grid bind take 1 to 2 mintues after hide mask.
  4. #4
    Hi,

    Please create test sample which we can run locally

Similar Threads

  1. .Net 4.0, grid hosting controls not showing
    By tallman in forum 1.x Help
    Replies: 14
    Last Post: Aug 30, 2011, 10:00 PM
  2. [CLOSED] Problem with showing and removing Mask on Portlet
    By webppl in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 11, 2011, 10:59 AM
  3. [CLOSED] Event Mask is not showing until complete process
    By rnachman in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Apr 08, 2011, 3:36 PM
  4. [CLOSED] Grid Loading Mask
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 12, 2009, 9:09 AM
  5. Grid rows not showing
    By myron in forum 1.x Help
    Replies: 16
    Last Post: Apr 27, 2009, 9:49 AM

Tags for this Thread

Posting Permissions