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

Override Report Data Preload

1 Answer 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 18 May 2012, 05:46 PM

Hi,

I am trying to override some report data values using the ItemDataBinding or Bound events, specifically I am looking for DateTime type values so I can override them with a local time conversion. Our DB stores all times in UTC and these need to be shown in local time on our website using the Report Viewer.

It is my understanding Reports has no native capability to do this (please let me know if I'm wrong!). I have been able to detect the values I need to override in the ReportBaseItem.DataObject object / RawData object instance using the properties collection (descriptor) method GetValue however SetValue seems to have no impact on the RawData and fails to reflect my update.

I would appreciate if anyone could provide any hints that may point me in the right direction.

Regards,
Craig

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 May 2012, 03:30 PM
Hello Craig,

Time conversion is not among the supported features of a reporting product, so yeah, you would have to do this manually. The best approach would be to handle the data used as datasource and convert it prior displaying in the report. Interfering with the report life cycle and replacing values at runtime is not a good idea as changing the value could also cause unexpected changes in the layout as the new content would not be measured.

Greetings,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Craig
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or