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

Updating page within ItemDataBound, Fields updated on wrong page

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Danny
Top achievements
Rank 1
Danny asked on 24 Jun 2016, 04:48 AM

I've got a number of text fields that I'm updating dynamically in the ItemDataBound function. What I'm finding is the updates are happening on the wrong page. Specifically, the results on the first page are actually the last page's results, and everything is shifted over 1. 

 

As an example, the report has "RecordID" data bound, as a test, I am updating txtResult.Value in the "ItemDataBound" function to equal "RecordID" (txtTest.Value = section.DataObject["RecordID"]). The two text fields do not equal each other, and, as I said above, the results are shifted over by 1.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Jun 2016, 02:27 PM
Hi Danny,

Please check Understanding Events, and verify the code in events is not manipulating items definitions.

On a side note, you can use custom functions and the built-in objects like ReportItem and ReportItem.DataObject instead of events. In such case the reporting engine will validate the expressions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Danny
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or