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

How do I displaying recursive data?

10 Answers 320 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
t
Top achievements
Rank 1
t asked on 22 Mar 2009, 01:38 AM
Does Telerik reports support displaying recursive data with the latest release?
Basically I have a simple table with a column "Parent_Id". I have been able to create
hierarchical trees in winforms but haven't had much success with the reports.

Thanks!
-Nick


10 Answers, 1 is accepted

Sort by
0
Accepted
Hrisi
Telerik team
answered on 23 Mar 2009, 07:19 PM
Hello t,

Although there is no out-of-the-box support for hierarchies you can achieve this result by using sub reports to represent hierarchical dependency. This possibility does not depend on the new features introduced in the last Reporting release. I have prepared a web site solution with a sample report which shows the data as you need it. Please find it attached.

To accomplish the task you have to use Report and SubReport Parameters and Filters.

I hope this will give you an idea how to start implementing your case. You can find more information on the above in the product documentation.

Let me know if you have any additional questions.

Sincerely yours,
Hrisi
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
t
Top achievements
Rank 1
answered on 29 Mar 2009, 05:03 AM
I am trying to build the project. When I do, I get a build error. It seems I am missing Report1.resx.

I am using Visual Studio 2008. There are no conversion errors.

Thanks!
-Nick
0
Steve
Telerik team
answered on 30 Mar 2009, 04:38 PM
Hello Nick,

Simply delete the .resx file from the ReportLibrary and re-built the solution. Then set the website as startup project and you should be able to see the working solution my colleague provided.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
t
Top achievements
Rank 1
answered on 30 Mar 2009, 08:44 PM
Telerik Team-
Thanks for the help!
I'm impressed with your products and support. I believe you've won me over from DevExpress.

-Nick
0
Necmettin
Top achievements
Rank 1
answered on 02 Sep 2011, 05:02 PM
Hi,

I tried to your solution. But I cannot see last node 'Node 1.2.1' in the report. If I enable error event in report1 I get 'Object with name 'Report1' already exists. Object should have unique names.' message on the report. 

I got exactly same error in my another project. I'm attaching the screenshot.

I'm waiting your suggestion.
0
IvanDT
Telerik team
answered on 07 Sep 2011, 07:48 AM
Hello Mustafa,

The following example is old and irrelevant. You can find attached newer and more comprehensive version of this report, which will give you some answers concerning recursive data and Telerik Reporting.

Kind regards,
IvanDT
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paul
Top achievements
Rank 1
answered on 05 Oct 2011, 01:23 AM
I am having a similar issue.

In my master report I need to use the same subreport in 4 different areas. If I declare more than one subreport of the same type it errors off.

An error has occurred while processing Report 'Report1':
Object with name 'SubReport1' already exists. Object should have unique names.

0
Steve
Telerik team
answered on 03 Apr 2012, 07:57 AM
Hi Paul,

This problem has already been addressed in the latest version of Telerik Reporting.

Kind regards,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
A
Top achievements
Rank 1
answered on 25 Sep 2012, 09:36 AM
Hallo,

I'm trying out your product and when i try the OrgChartSolution it works.
But when i use the latest .dll's the example doesn't work anymore.
It gives the error, An error occured while processing SubReport 'ManagedEmployees'
Unable to cast object of type OrgChart to type Telerik.Reporting.ReportSource.

Any solution?

With kind regards,
Harry
0
Steve
Telerik team
answered on 28 Sep 2012, 11:46 AM
Hello Harry,

In Q2 2012, we have changed the Report API a bit, so the example needs to be modified according to those new changes. You can find more information in the following KB article: How to migrate your project to utilize the new ReportSource objects.

For your convenience I have attached modified version of the OrgChartSolution project that works with the latest version.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
t
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
t
Top achievements
Rank 1
Steve
Telerik team
Necmettin
Top achievements
Rank 1
IvanDT
Telerik team
Paul
Top achievements
Rank 1
A
Top achievements
Rank 1
Share this question
or