Data source available only at runtime

2 posts, 0 answers
  1. Sabbir
    Sabbir avatar
    5 posts
    Member since:
    Dec 2012

    Posted 02 Oct 2015 Link to this post


    i am using HTM5 report viewer in MVC application.

    Look in .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.

  2. Nasko
    Nasko avatar
    909 posts

    Posted 07 Oct 2015 Link to this post

    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.

    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 R3 2016 release webinar banner
Back to Top