protected void radgrid1_ItemUpdated(object source, GridUpdatedEventArgs e)
{
if (e.Exception != null)
{
e.KeepInEditMode =
true;
e.ExceptionHandled =
true;
If row.Item(10) = 0 Then e.Appointment.RecurrenceState = RecurrenceState.NotRecurringElse e.Appointment.RecurrenceState = RecurrenceState.OccurrenceEnd If
private void groupHeaderSection1_ItemDataBinding(object sender, EventArgs e)
{
users = userProcess.getSalaryDetails();
//seriesMapping.ItemMappings.Add(new ItemMapping("Salary", DataPointMember.YValue, ChartAggregateFunction.Sum));
Telerik.Reporting.Processing.
GroupSection GroupHeaderSection = (Telerik.Reporting.Processing.GroupSection)sender;
Telerik.Reporting.Processing.Report report = GroupHeaderSection.Report;
//var group = "jan";
var group = GroupHeaderSection.DataObject["Month"];
string StrExp = null;
StrExp = " Month =' " + group + "' ";
DataTable table = (DataTable)report.DataSource;
DataRow[] rows = table.Select(string.Format("Month", group));
string ChartTitle = null;
string XLable = null;
string YLable = null;
chart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Reporting.Charting.Styles.AlignedPositions.Top;
Telerik.Reporting.Processing.Chart HourChart = (Telerik.Reporting.Processing.Chart)GroupHeaderSection.ChildElements.Find("chart1", true)[0];
//Telerik.Reporting.Processing.Chart HourChart = GroupHeaderSection.ChildElements.Find("Chart_Standard_Email_HourlyProd", true)(0);
Telerik.Reporting.
Chart ChartDef = (Telerik.Reporting.Chart)HourChart.ItemDefinition;
ChartDef.Series.Clear();
// DataRow drrow = default(DataRow);
chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.
ChartValueFormat.General;
chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.
ChartValueFormat.General;
ChartDef.PlotArea.XAxis.Clear();
ChartDef.PlotArea.XAxis.AutoScale =
false;
XLable =
"Month";
YLable =
"Salary";
chart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = XLable;
chart1.PlotArea.XAxis.AxisLabel.Visible =
true;
chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = YLable;
chart1.PlotArea.YAxis.AxisLabel.Visible =
true;
 
Telerik.Reporting.Charting.
ChartSeriesItem SeriesItem = new Telerik.Reporting.Charting.ChartSeriesItem();
Telerik.Reporting.Charting.
ChartSeriesItem SeriesItem1 = new Telerik.Reporting.Charting.ChartSeriesItem();
 
 
 
users = userProcess.getSalaryDetails();
foreach (DataRow row in rows)
{
//Telerik.Reporting.Charting.ChartSeriesItem SeriesItem = new Telerik.Reporting.Charting.ChartSeriesItem();
//Telerik.Reporting.Charting.ChartSeriesItem SeriesItem1 = new Telerik.Reporting.Charting.ChartSeriesItem();
SeriesItem.YValue =
Convert.ToDouble(row["Month"]);
ChartSeries.Items.Add(SeriesItem);
ChartSeries.Name =
"Month";
SeriesItem.Label.TextBlock.Appearance.TextProperties.Color = System.Drawing.
Color.Black;
ChartSeries.Appearance.FillStyle.MainColor =
Color.Green;
ChartSeries.Appearance.FillStyle.SecondColor =
Color.Green;
ChartSeries.Type = Telerik.Reporting.Charting.
ChartSeriesType.Bar;
SeriesItem1.YValue =
Convert.ToDouble(row["Salary"]);
ChartSeries1.Items.Add(SeriesItem1);
ChartSeries1.Name =
"Salary";
SeriesItem1.Label.TextBlock.Appearance.TextProperties.Color = System.Drawing.
Color.Black;
ChartSeries1.Appearance.FillStyle.MainColor =
Color.DarkRed;
ChartSeries1.Appearance.FillStyle.SecondColor =
Color.DarkRed;
ChartSeries1.Type = Telerik.Reporting.Charting.
ChartSeriesType.Bar;
}
ChartDef.PlotArea.XAxis.AutoScale =
false;
ChartDef.PlotArea.XAxis.AutoShrink =
false;
chart1.PlotArea.YAxis.AxisMode = Telerik.Reporting.Charting.
ChartYAxisMode.Extended;
ChartDef.Series.AddRange(
new Telerik.Reporting.Charting.ChartSeries[] { ChartSeries });
ChartDef.Series.AddRange(
new Telerik.Reporting.Charting.ChartSeries[] { ChartSeries1 });
}