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

Design time availability of XMl Schema

1 Answer 152 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nayum Tamboli
Top achievements
Rank 1
Nayum Tamboli asked on 28 May 2010, 06:48 AM
Hi There,

I am trying telerik reports, what i wanted do is to include the Datatable schema from a xml file, use these fields to design report, and then bind data to this runtime (As I used to do this in Crystal Reports). But on Forum I found that in Telerik XML Schema is not available at design time.
    I tried the anather way i.e. Adding the DataSet to Project (Not filling Table using TableAdapter) and use DataTable from this DataSet, But Ahhhh, I cant see this dataset while assining or adding new datasource, neither as CurrentDataSource nor as ProjectDataSource.


I hope I am clear, and you get what exactly I wanted to say,

Is there any solution for this, I mean to say, to use table schema at design time and assign datasource at runtime as i used to do in Crystal Report.
Imp: your query builder does not help me a lot beacuse I use MySQL, and it does not supports MySQL Stored Procedures.


Thanx for the Help.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 28 May 2010, 04:26 PM
Hi Nayum Tamboli,

In order to have your fields available in the Data Explorer you should set DataSource for the report in runtime. In case of DataSet, the easiest way is to bind the report through the ObjectDataSource Component. More information is available in the How to: Bind to a DataSet help article.
If you want to provide DataSource at runtime, you should "reset" the design time datasource by setting this.DataSource = null in the report constructor and hook up the NeedDataSource event where you would provide the actual datasource at runtime.

Sincerely yours,
Steve
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Nayum Tamboli
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or