protected void WebChartControl1_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e) { string[] s = e.Parameter.Split('|'); if (s[0] == "MyCallback") { ((WebChartControl)sender).PaletteName = s[1]; ((WebChartControl)sender).Titles.Clear(); ChartTitle ct = new ChartTitle(); ct.Text = s[1]; ((WebChartControl)sender).Titles.Add(ct); } }
protected void chart_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e) { try { if (!string.IsNullOrEmpty(e.Parameter)) { var filters = Lib.FromJsonStr <List <WidgetFilter> >(e.Parameter); this.Sett.WidgetFiltersRuntime = filters; this.InitCustom_Charts(); } } catch { } }
protected void TopMailChartControl_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e) { this.TopMailChartControl.Width = new Unit(Convert.ToInt32(chartWidth.Value)); }
protected void webChartDiskHealth_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e) { webChartDiskHealth.Width = new Unit(Convert.ToInt32(chartWidth.Value)); }