Jul 09, 2010, 6:55 AM
[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.
Step-2:
Still the detail section for detail grid is not filling the records, but mask is not showing. Detail grid having 1250 records.
Step-3:
Finally the detail grid has filled without showing mask. This process will take more than 1 to 2 minutes.
The following methods i have used to bind the detail grid
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.
Step-2:
Still the detail section for detail grid is not filling the records, but mask is not showing. Detail grid having 1250 records.
Step-3:
Finally the detail grid has filled without showing mask. This process will take more than 1 to 2 minutes.
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.