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);
     }
 }
Exemple #2
0
 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 { }
 }
Exemple #3
0
 protected void TopMailChartControl_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e)
 {
     this.TopMailChartControl.Width = new Unit(Convert.ToInt32(chartWidth.Value));
 }
Exemple #4
0
 protected void webChartDiskHealth_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e)
 {
     webChartDiskHealth.Width = new Unit(Convert.ToInt32(chartWidth.Value));
 }