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

page numbers by group, context error

1 Answer 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David Carnley
Top achievements
Rank 1
David Carnley asked on 08 Mar 2009, 06:38 AM
I've created a user function in the report class in an attempt to calculate a page number that breaks by group (according to details found in a MSDN post referred to by an earlier thread here).  In short, I pass into my function the field upon whihc my group is based (clientID) and the global value for page number, and sue these values to calculate a new page number.

I then use this function as the expression on a text box in the page footer.

When I view the report I get an error stating that the clientID is not available in that context.

Any ideas on how I can approach this issue?  I'm thinkin that pehaps I can attach to an event on the group and capture the current clientID in a variable that the function would ahve access to?

Any ideas or direction would be helpful.

Thanks
David C

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Mar 2009, 08:36 PM
Hello David,

As explained in the Understanding report sections help article, the Page Footer and its items are processed by the corresponding rendering extension after the report data has been processed. At that time the report data source is not available anymore and you cannot use databound items (i.e. expressions depending on databound items) in the Page Footer section.

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
David Carnley
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or