I am trying to create a report which will basically show data in groups. But the thing is that for each group the data to display might vary, both in columns and rows. This is why I can not design a Details Section at the Design-Time. While starting to process each group I am converting the necessary data while the groupHeader is being bound with:
which is OK. But after getting this re-constructed DataTable I want to design the Details Section of the Group according to the DataTable returned; which basically means to create columns and rows manually.
To create a custom grid on the fly I am trying to create TextBoxes and manually design them. This is where it gets stuck. I am doing this while binding data to the Details Section as:
But at the line 14 I am getting "The Type 'Telerik.Reporting.Processing.TextBox' has no constructors defined".
How can I create a TextBox while binding the Group Details Section and why this item has no constructor but Intellisense brings me one when I type new?
Regards.
private void groupHeaderSection4_ItemDataBound(object sender, EventArgs e) |
{ |
Telerik.Reporting.Processing.GroupSection dtl = (Telerik.Reporting.Processing.GroupSection)sender; |
sectionsData = ConvertToDataTable(dtl); |
} |
To create a custom grid on the fly I am trying to create TextBoxes and manually design them. This is where it gets stuck. I am doing this while binding data to the Details Section as:
private void detail_ItemDataBinding(object sender, EventArgs e) | |
{ | |
Telerik.Reporting.Processing.DetailSection dtl = (Telerik.Reporting.Processing.DetailSection)sender; | |
dtl.Items.Clear(); | |
ProcessingBindColumnNames(dtl); | |
} | |
protected void ProcessingBindColumnNames(Telerik.Reporting.Processing.DetailSection dtl) | |
{ | |
double columnWidth = (double)(Convert.ToDouble(dtl.Width) - Convert.ToDouble(tbDurumWidth)) / (sectionsData.Columns.Count - 1); | |
tbColumnWidth = new Telerik.Reporting.Drawing.Unit(columnWidth, UnitType.Cm); | |
for (int c = 0; c < sectionsData.Columns.Count - 1; c++) | |
{ | |
Telerik.Reporting.Processing.TextBox tb = new Telerik.Reporting.Processing.TextBox(); | |
} | |
} |
How can I create a TextBox while binding the Group Details Section and why this item has no constructor but Intellisense brings me one when I type new?
Regards.