This is a migrated thread and some comments may be shown as answers.

Column grouping for dynamic report binding with POCO classes

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 1
Manish asked on 15 Feb 2013, 12:05 PM
Hello,

I am binding table of report to custom POCO class(Instead of DataSet) and manually assigning data to each cell.
But in that case "=Fields.ColumnName" expression does not work for column grouping and sorting.

What could be the solution for column grouping/sorting when we dont use DataSet and use data from list of POCO classes or Entities of Entity Framework?

Thanks very much,

Manish

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 15 Feb 2013, 05:25 PM
Hi Manish,

As far as I understand you have wrapped your data in an objectDataSource or entityDatasource component, then assigned that data source component to the table. The rest of the code should be the table item dynamic creation where for columns you have set some field expressions. The table item has complex structure, especially when grouping and sorting is involved, so the easiest approach is to use the designer at first and create the item using the wizards(table, crosstab wizards) which will guide you through the process of creating the needed layout (groupings) and will provide you with the list of available fields from the data source component. additional grouping and sorting settings can be performed by selecting the item and opening the 'Group Explorer'. Finally, the code from the designer.cs can be subtracted, refined and used for your needs. The articles under Table/Crosstab/List may give you some insight view.

If you have further question, please elaborate on your code, data and scenario.

All the best,
Stef
the Telerik team

HAPPY WITH 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!

Tags
General Discussions
Asked by
Manish
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or