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

Data source available only at runtime

1 Answer 50 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
khandokar
Top achievements
Rank 1
khandokar asked on 02 Oct 2015, 01:05 PM

Hi

i am using HTM5 report viewer in MVC application.

Look in http://www.telerik.com/help/reporting/connecting-to-data-working-with-data-at-design-time.html .In the Data source available only at runtime section, it is said to mock your data just to enable the Report Designer to show any data schema. How can i mock my data?i don't want to add datasource Another question is that if assign a data source at design time,will NeedDataSource event of report will fire or not ? Please let me know.

Sabbir

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 07 Oct 2015, 07:55 AM
Hello Sabbir,

You will need to add a data source component which connects to your mock object at design time. This will stop the NeedDataSource event from firing since it fires only when the data source is set to none.
To avoid this behavior, you can either set the data source to null programmatically in your application, or leave the report without a data source. In the latter scenario, you will have to write the data fields in expressions manually, since the data schema will not be available.

Regards,
Nasko
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
Report Designer (standalone)
Asked by
khandokar
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or