Updating page within ItemDataBound, Fields updated on wrong page

2 posts, 0 answers
  1. Danny
    Danny avatar
    3 posts
    Member since:
    Oct 2014

    Posted 23 Jun Link to this post

    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.

  2. Stef
    Stef avatar
    2932 posts

    Posted 27 Jun Link to this post

    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.

    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
  3. DevCraft banner
Back to Top