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

Infinite Loop in PageHeaderSection

4 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 18 Dec 2012, 08:30 PM
My report is not bound to a DataSource, but in the PageHeaderSection my Textbox_ItemDataBinding event keeps getting called in an infinite loop.

I have a pretty complex table in a ReportHeaderSection that is bound, but stepping through the debugger the Table finishes binding its dataset without any issues.  I originally had it in the detailSection but changed it in my debugging efforts.



How can I determine what is causing the infinite loop in the PageHeaderSection when the processing is done in the ReportEngine.


Steve

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Dec 2012, 03:38 PM
Hello Steve,

The provided information is insufficient to determine what might be the problem. Please open a support ticket and attach a runnable project that exhibits the problem, once we review it, we would be able to provide more information.

Greetings,
Steve
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!

0
Steven
Top achievements
Rank 1
answered on 19 Dec 2012, 03:45 PM
I followed another forums advise to pulled the content out of the DetailsSection and put it into a ReportHeaderSection.

My first attempt was unsuccessful so I restarted with my original version and tried again and this time I didn't get the infinite loop.


My Report is bound to a stored proc that only returns a single row for the PageHeaderSection and PageFooterSection.  I have 3 tables in the details section that are each bound to their own dataset.  For some reason the textboxes ItemDataBinding events were fired in an infinte loop within the PageHeaderSection.

0
Steven
Top achievements
Rank 1
answered on 20 Dec 2012, 06:07 AM
The issue was within a Value Expression within one of the rows.

There is no issue if the row is hidden through the TableGroup Filter but resulted in an infinite loop when Visible.

These rows were static footer footers from one of the TableGroups.

The value columns were just "= IIf(exp, val1, val2)" so I just changed them to assignment within the ItemDataBinding event and everything was fine.   I'm not sure why the infinite loop, but now my PageHeader textboxes ItemDataBinding only gets called 42 times, when there are 5 pages, so I still have a little debugging to do.

Steve
0
Stef
Telerik team
answered on 27 Dec 2012, 10:12 AM
Hi Steve,

Glad to hear you are progressing on the issue.
If further assistance is needed, please open a support ticket and attach a runnable project that exhibits the problem, so we can review it locally and provide more information.

Kind regards,
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
Steven
Top achievements
Rank 1
Answers by
Steve
Telerik team
Steven
Top achievements
Rank 1
Stef
Telerik team
Share this question
or