private void tableTextBox_ItemDataBinding(object sender, EventArgs eventArgs) { //get the textbox from the sender object Processing.TextBox textBox = (Processing.TextBox)sender; //get the corresponding tableCell in which the textbox is located Processing.TableCell tableCell = (Processing.TableCell)textBox.Parent; //get the table object Processing.Table table = (Processing.Table)tableCell.Parent; //get the detail section Processing.DetailSection detail = (Processing.DetailSection)table.Parent; //get the raw value from the Report datasource directly textBox.Value = detail.DataObject["Data"]; }
Hi,
I have a report which contains bound fields and a table (Telerik.Reporitng.Table) in the detail section of the report. I have used stored procedure which returns dataset with 2 datatables. i.e (Categories and Products). I have bound (in code) the report datasource to "Categories" datatable of the dataset and Telerik.Reporting.Table to "Products" datatable of the dataset. Both datatables “Categories” and “Products” have "CategoryID" column. I have a filter on the Telerik.Reporting.Table to only display products related to particular "CategoryID". Everything works just fantastic. I am able to run and export to pdf thousands of pages without any issue. However if there is no product for some category, in such case Telerik.Reporting.Table doesn't have any records it renders without any issue in report viewer but when I export to pdf it throws "Index out of range" error. Surprisingly export to excel just works fine.
Please help.
Thanks
Jignesh