public Report1()
{
/// <
summary
>
/// Required for telerik Reporting designer support
/// </
summary
>
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
this.NeedDataSource += new System.EventHandler(this.Report1_NeedDataSource);
}
private void Report1_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
int advertiserID = int.Parse(report.Parameters["advertiserID"].Value.ToString());
DateTime dtStartDate = DateTime.Parse(report.Parameters["startDate"].Value.ToString());
DateTime dtEndDate = DateTime.Parse(report.Parameters["endDate"].Value.ToString());
report.DataSource = (GetBannersByMonthByAdvertiser(advertiserID, dtStartDate, dtEndDate)).Tables[0];
}
Hello,
We are using version Q2 2011 of telerik reporting.
I am using the Silverlight report viewer in my application and we are using our own controls outside of the viewer to feed in report parameters. This has worked well so far and the BeginRender event is working fine.
However we now have a requirement for a report that drills through to another report and I need to update our criteria selectors to reflect the new parameter values that are used. When the drill through report starts to load the BeginRender event fires on the client so I know that they have drilled through, but the args that are passed do not contain the parameters that were used.
If there any way to get the parameter values? Will this be addressed in a future release?
Any help would be appreciated.
Thanks,
Travis
// coll is a collection & my datasource
this.table1.DataSource = coll;
TableGroup group = new TableGroup { Name = "Territory" };
group.Groupings.Add(new Telerik.Reporting.Data.Grouping("=Fields.Territory"));
//Remove the detail group
var detailGroup = table1.RowGroups[0];
table1.RowGroups.Clear();
//Add the detail group as a child to the AgeGroup (nest it)
group.ChildGroups.Add(detailGroup);
group.GroupKeepTogether = true;
//Add the AgeGroup
table1.RowGroups.Add(group);
Hello All,
I am creating a bar chart. The datasource is a datatable having values. The X-Axis has the date and the Y-Axis has values. When done this way the Datapoints are being displayed on top of each bar. I do not want to display the Datapoint value. How do I disable this? I had check the example they had given "chartSeries.Appearance.LabelAppearance.Visible = false;"(doesnot support). Is there any way the I can remove the datapoints.
Any how I am able to disable if I create series and populate by giving " chart1.Series[1].Appearance.LabelAppearance.Visible = false;" but the problem in this is that I am not able to populate the X-axis with date it asks for a double " item1.XValue = Convert.ToDateTime(TableValues.Rows[i]["StartTime"]).ToOADate();" in this the displayvalue in the chart comes as year 1899, the value passed was “TableValues.Rows[i]["StartTime"]= 2011-11-10 17:10:00". How do I plot values for relevant date?
Code:
Telerik.Reporting.Charting.ChartSeries chartSeries1 = new Telerik.Reporting.Charting.ChartSeries();
for (int i = 0; i < TableValues.Rows.Count; i++)
{
Telerik.Reporting.Charting.ChartSeriesItem item1 = new Telerik.Reporting.Charting.ChartSeriesItem();
item1.YValue = Convert.ToDouble(TableValues.Rows[i]["AlarmCount"]);
item1.XValue = Convert.ToDateTime(TableValues.Rows[i]["StartTime"]).ToOADate();
chartSeries1.Items.Add(item1);
}
this.InitiatedChart.Series.AddRange(new Telerik.Reporting.Charting.ChartSeries[] {
chartSeries1});
The other is that what is the max number of values the graph can hold. The graph does not display for 16,000 points.