Hi..
My sp returns 3 datatable in a dataset. i put the dataset in loop and creates dynamic table
and i'm adding this panel to another panel which i cretated in the desiger.
My issue is the tables are binding in the reverse order.
Thats is the the last table in the dataset shows first. please help me..
Thanks,
Mahesh
My sp returns 3 datatable in a dataset. i put the dataset in loop and creates dynamic table
for (int m = 1; m <
dataSet.Tables.Count
- 1; m++)
{
Table table1 = new Table();
DataTable data = dataSet.Tables[m];
...................................
-----------------------------------
Panel pnlPeerReviewerRecommendation = new Panel();
pnlPeerReviewerRecommendation.Anchoring = AnchoringStyles.Left;
table1.Anchoring = AnchoringStyles.Left;
table1.Top = new Unit(20.0d);
pnlPeerReviewerRecommendation.Items.Add(table1);
}
and i'm adding this panel to another panel which i cretated in the desiger.
My issue is the tables are binding in the reverse order.
Thats is the the last table in the dataset shows first. please help me..
Thanks,
Mahesh
5 Answers, 1 is accepted
0
Hello Mahesh,
Specifying Location and Size for each report item is mandatory, where the Location should not match with any existing item's location, otherwise both items would overlap resulting in unexpected layout.
Greetings,
Steve
the Telerik team
Specifying Location and Size for each report item is mandatory, where the Location should not match with any existing item's location, otherwise both items would overlap resulting in unexpected layout.
Greetings,
Steve
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
0

Mahesh
Top achievements
Rank 1
answered on 28 Nov 2012, 08:19 AM
Thanks Steve, for your reply.
I have one more doubt. Since the table is creating and binding dynamically, how can i mention the position of those tables? do you have any code piece for this?
Thanks,
Mahesh
I have one more doubt. Since the table is creating and binding dynamically, how can i mention the position of those tables? do you have any code piece for this?
Thanks,
Mahesh
0
Hello Mahesh,
When you set Location of a report item in the designer and this report item grows at runtime, the distance between the item and other items is preserved i.e. they are pushed right and below. An overlapping item can only exist at design time when you manually set a Location for two or more items that overlap.
All the best,
Steve
the Telerik team
When you set Location of a report item in the designer and this report item grows at runtime, the distance between the item and other items is preserved i.e. they are pushed right and below. An overlapping item can only exist at design time when you manually set a Location for two or more items that overlap.
All the best,
Steve
the Telerik team
HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!
0

Adrian
Top achievements
Rank 1
answered on 15 May 2014, 06:50 AM
Hello Mahesh,
Please can you share me the code for creating dynamic tables inside loop.
Thanks in advance
Please can you share me the code for creating dynamic tables inside loop.
Thanks in advance
0
Hello Adrian,
This is the response I posted in your support ticket on the same question:
"Using the Report Designer, create the desired layout for the Table item. Then extract all related objects from the report's designer.cs file. You will notice that:
Based on this, you can determine which elements to be created and added in a loop, and which are required just once.
You may find useful the following help articles:
The created item can be added to the report's Items collection at run-time"
Regards,
Stef
Telerik
This is the response I posted in your support ticket on the same question:
"Using the Report Designer, create the desired layout for the Table item. Then extract all related objects from the report's designer.cs file. You will notice that:
- The Table needs to have column groups and row groups defined (at least one of each)
- The table body needs columns and rows defined (as much as the corresponding groups)
- Each cell of the table must have an item inside of it (textbox, panel, etc...)
Based on this, you can determine which elements to be created and added in a loop, and which are required just once.
You may find useful the following help articles:
The created item can be added to the report's Items collection at run-time"
Regards,
Stef
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.