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);
     }
 }
コード例 #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 { }
 }
コード例 #3
0
 protected void TopMailChartControl_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e)
 {
     this.TopMailChartControl.Width = new Unit(Convert.ToInt32(chartWidth.Value));
 }
コード例 #4
0
ファイル: DiskHealth.aspx.cs プロジェクト: ImranVS/SVNGIT
 protected void webChartDiskHealth_CustomCallback(object sender, DevExpress.XtraCharts.Web.CustomCallbackEventArgs e)
 {
     webChartDiskHealth.Width = new Unit(Convert.ToInt32(chartWidth.Value));
 }