protected void GridPersonalizzata_PageIndexChanging(object sender, GridViewPageEventArgs e) { try { GridPersonalizzata.PageIndex = e.NewPageIndex; grid_rowindex.Value = "-1"; loadGrigliaField(); upButtons.Update(); UpPnlDettaglio.Update(); } catch (System.Exception ex) { UIManager.AdministrationManager.DiagnosticError(ex); return; } }
protected void GridPersonalizzata_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) { //try //{ ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "reallowOp();", true); this.ddlWidth.SelectedValue = (TemporaryGrid.Fields[e.NewSelectedIndex].Width).ToString(); this.selectedFieldPosition.Value = (e.NewSelectedIndex).ToString(); Label systemIdLabel = (Label)this.GridPersonalizzata.Rows[e.NewSelectedIndex].FindControl("SYSTEM_ID"); this.hfFieldId.Value = systemIdLabel.Text; EnabledButtunUpDown(GridPersonalizzata.Rows[e.NewSelectedIndex]); GridPersonalizzata.SelectedIndex = e.NewSelectedIndex; if ((((CheckBox)GridPersonalizzata.Rows[e.NewSelectedIndex].FindControl("checkDocumento")).Checked)) { ViewDettaglioFiled(TemporaryGrid.Fields[e.NewSelectedIndex].Label, TemporaryGrid.Fields[e.NewSelectedIndex]); SaveCurrentFieldProperties(); } else { ViewDettaglioFiled(string.Empty, null); RemoveCurrentFieldProperties(); } bool IsRoleEnabledToUseGrids = UIManager.UserManager.IsAuthorizedFunctions("GRID_PERSONALIZATION"); if (SelectedGrid.GridType == GridTypeEnumeration.Project) { GridManager.CompileDdlOrderAndSetOrderFilterProjects(this.TemporaryGrid, this.ddlOrder, this.ddlAscDesc, IsRoleEnabledToUseGrids); } else { GridManager.CompileDdlOrderAndSetOrderFilterDocuments(this.TemporaryGrid, this.ddlOrder, this.ddlAscDesc, IsRoleEnabledToUseGrids); } UpnlGrigliaPersonalizzata.Update(); UpnlGrigliaTemplate.Update(); UpPnlDettaglio.Update(); //} //catch (System.Exception ex) //{ // UIManager.AdministrationManager.DiagnosticError(ex); // return; //} }