string strMessage = "Do you want to add items now?";
JS =
" Sys.Application.add_init(CRInit);";
JS +=
" function CRInit(){ Sys.Application.add_load(SRRunOnce);}";
JS +=
" function SRRunOnce(){ showConfirmation(); Sys.Application.remove_load(SRRunOnce);}";
JS +=
" function GetRadWindow1(){";
JS +=
" var oWindow = null;";
JS +=
" if (window.radWindow) oWindow = window.radWindow;";
JS +=
" else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;";
JS +=
" return oWindow;";
JS +=
"}";
JS +=
" function showConfirmation(){";
JS +=
" function CallBackFn(arg){";
JS +=
" var oWindow = GetRadWindow1();";
JS +=
" if (arg == 'Yes'){";
JS +=
" window.location = 'ComponentReworkPackSlipItemDetail.aspx?R=Y&A=A&pid=" + oPackingSlip.PackingSlipReworkId.ToString() + "';";
JS +=
" }";
JS +=
" else {";
JS +=
" oWindow.Close();";
JS +=
" oWindow.BrowserWindow.refreshGridAndLocate(" + oPackingSlip.PackingSlipReworkId.ToString() + ");";
JS +=
"}";
JS +=
"}";
JS +=
" radconfirm('" + strMessage + "', CallBackFn, 530, 100, null, 'Confirm Add Item');";
JS +=
"}";
ScriptManager.RegisterStartupScript(Page, this.Page.GetType(), key, JS, true);
}

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">