protected void grid_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { if (e.Parameters.StartsWith("e:")) { grid.JSProperties["cp_export"] = pivotgridExpoort(e.Parameters.Substring(2)); } }
protected void ASPxPivotGrid1_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { string[] parameters = e.Parameters.Split(new char[] { '|' }); this.SelectedRowIndex = Convert.ToInt32(parameters[0]); this.SelectedColumnIndex = Convert.ToInt32(parameters[1]); PrepareChartData(); }
protected void ReportPivotGird_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { if (LayoutItemsCombo.Value != null) { var data = LayoutItemsDataSource.Select() as List <PivotLayoutItem>; var item = data.Where(i => i.ID == LayoutItemsCombo.Value.ToString().ToInt()).FirstOrDefault(); if (item != null) { ReportPivotGird.LoadLayoutFromString(item.Layout); ReportPivotGird.DataBind(); } } }
protected void pgReportDataConsolidado_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { Mensaje msg = new Mensaje(); pgReportDataConsolidado.JSProperties["cp_evento"] = e.Parameters.ToString(); switch (e.Parameters.ToString()) { case "GuardarLayout": msg = tool.GuardarLayout(User.Identity.Name, pgReportDataConsolidado.ID, pgReportDataConsolidado.SaveLayoutToString(), true); pgReportDataConsolidado.JSProperties["cp_mensaje"] = msg.Descripcion; pgReportDataConsolidado.JSProperties["cp_estado"] = msg.Estado; break; case "ReiniciarLayout": msg = tool.ResetLayout(User.Identity.Name, pgReportDataConsolidado.ID); if (msg.Estado == 1) { pgReportDataConsolidado.LoadLayoutFromString(msg.Descripcion); } pgReportDataConsolidado.JSProperties["cp_mensaje"] = msg.Descripcion; pgReportDataConsolidado.JSProperties["cp_estado"] = msg.Estado; break; case "MostrarGrid": { pgReportDataConsolidado.JSProperties["cp_caption"] = GetFiltersAsTitle(); try { CargarDatosIniciales(); CargarDatosSesion(false); pgReportDataConsolidado.JSProperties["cp_mensaje"] = string.Empty; pgReportDataConsolidado.JSProperties["cp_estado"] = 1; } catch (Exception ex) { pgReportDataConsolidado.JSProperties["cp_mensaje"] = ex.Message; pgReportDataConsolidado.JSProperties["cp_estado"] = 0; } break; } default: break; } }
protected void pivotGrid_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { }
protected void PivotGrid_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { this.TabPageMap.ActiveTabIndex = 0; SubFormaDatos(e.Parameters.ToString() == "1"); this.PivotGrid.DataBind(); }
protected void ASPxPivotGrid1_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { int dataFieldIndex = Convert.ToInt32(e.Parameters); Label1.Text = ASPxPivotGrid1.GetFieldByArea(PivotArea.DataArea, dataFieldIndex).SummaryType.ToString(); }
protected void PivotGrid_CustomCallback(object sender, DevExpress.Web.ASPxPivotGrid.PivotGridCustomCallbackEventArgs e) { this.TabPageMap.ActiveTabIndex = 0; this.PivotGrid.DataBind(); }