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

Event for Navigate Back-Button

1 Answer 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carsten Koster
Top achievements
Rank 2
Carsten Koster asked on 19 Sep 2011, 10:27 AM
Hey Telerik-Support-Team,

I am wondering, is there a way to detect in code when the navigate back button was pressed?

The problem is that I'd like to programmatically add Headers and Footers to a report. This is currently triggered in the need datasource event of the report. It seems that when the report is cached and the back button is pressed the need data source event is not fired (as its already databound). I'd like to circumvent this behavior to add the header and footer elements regardless.

I noticed that for a picturebox the need datasource event is fired even if the user navigates back to a report.

Thank you for your help,

Regards,
Kristoffer Witt

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 21 Sep 2011, 12:10 PM
Hi Carsten Koster,

Since Q3 the NeedDataSource report event is meant to be used only for providing data source to the report and that data source is cached unless changed i.e. once cached the NeedDataSource event is not fired again. Our suggestion is to use ItemDataBinding event, which is fired regardless.

Greetings,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Carsten Koster
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or