Hello..
I need to know if i am doing something wrong with the marked zone at radchart.-
But i have a little problem.
If i set the DataLabelsColumn, the Markedzone doesn´t work, but if i comment this line everithing is ok with the markedzone.
The line is this -->RadChart1.PlotArea.XAxis.DataLabelsColumn = "DiasMes";
RadChart1.DataSource = dt;
RadChart1.PlotArea.XAxis.DataLabelsColumn =
"DiasMes";
RadChart1.DataBind();
foreach (ChartSeries oSerie in RadChart1.Series)
{
oSerie.Type =
ChartSeriesType.StackedArea;
oSerie.Appearance.LabelAppearance.Visible =
false;
}
ChartMarkedZone oMZ = new ChartMarkedZone();
oMZ.ValueStartX = 10;
oMZ.ValueEndX = 12;
oMZ.Appearance.FillStyle.MainColor = System.Drawing.
Color.Red;
RadChart1.PlotArea.XAxis.LabelStep = 1;
RadChart1.PlotArea.XAxis.MinValue = 1;
RadChart1.PlotArea.XAxis.MaxValue = MaxDayOfMonth;//int Value
RadChart1.PlotArea.MarkedZones.Add(oMZ);
RadChart1.DataBind();
| function ChangePage(FileName, qty) |
| { |
| if (window.frameElement) { |
| // Redirect |
| GetRadWindow().SetUrl(FileName); |
| var curWidth = GetRadWindow().get_width(); |
| // Coming from Pers to AOV - shrink window |
| if (curWidth > 700 && FileName.indexOf("aov") > -1) { |
| GetRadWindow().set_width(645); |
| GetRadWindow().set_height(600); |
| GetRadWindow().center(); |
| } |
| // Coming from AOV to Pers - expand window |
| if (curWidth < 700 && FileName.indexOf("aov") == -1) { |
| GetRadWindow().set_width(1000); |
| GetRadWindow().set_height(850); |
| GetRadWindow().center(); |
| } |
| } else { |
| // Going to AOV or Pers check |
| if(FileName.indexOf("aov") > -1) { |
| openRadWindow(FileName,600,645,1,0,1,1,qty); |
| } else { |
| openRadWindow(FileName,850,1000,1,0,1,1,qty); |
| } |
| } |
| } |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; |
| oWindow.SetModal(true); |
| return oWindow; |
| } |

<MasterTableView Width="100%" CommandItemDisplay="Top" TableLayout="Fixed" DataKeyNames="EmployeeID">