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

ObjectDataSource Silverlight

4 Answers 177 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nick Wood
Top achievements
Rank 1
Nick Wood asked on 16 Mar 2010, 01:53 AM
Hi All

I am trying to bind a report to an ObjectDataSource as in this: http://www.telerik.com/help/reporting/object-data-source-how-to-bind-to-business-object.html

the issue is that this form what I can see, will only work with winforms or asp.
  1. No Reference to ObjectDataSource
  2. Cannot reference a non silverlight class library in a silverlight app so therefore cannot get a reference directy to the report as in this section of the example code:
var report = new Report1(); 
 
            // Assigning the ObjectDataSource component to the DataSource property of the report. 
            report.DataSource = objectDataSource; 

Is there anyway to do this in sliverlight??

What I am trying to do is bind to the ItemSource of a GridView in silverlight so that the user can filter, group, etc at runtime on the GridView and the report will be bound to the changes.

Please help me?!

Nick

4 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 18 Mar 2010, 01:00 PM
Hi Nick,

Currently the Telerik Report API is compiled against the .NET CLR only. That said you cannot use the Telerik Report API to create report definitions in Silverlight. For more information on how to use Telerik Reporting in Silverlight please see Silverlight Report Viewer help topics and check the SilverlightDemo that comes with the sample solutions installed together with Telerik Reporting both in C# and VB.NET.

Best wishes,
Svetoslav
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.
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 06 Apr 2010, 04:46 PM
Hi Nick,

If you are using Silverlight framework with telerik reporting, you should know something :

Silverlight is ClientSide
Your data source should be on server side, through RIA services or anything else (WCF Webservices...)
Telerik reporting service is on server side

So I think that you would prefer send some parameters describing how the user filtered its datas instead of sending all the datas to telerik reporting server ! In fact, if you do so, you send only some light weight parameters (booleans, strings, integers...) to telerik reporting service on your server. This one, when generating the report will ask your data server to have it's datas through a server-server communication layer. Then the server will send the generated report to the client.
0
Amruta
Top achievements
Rank 1
answered on 21 Apr 2010, 02:06 PM
Hi,

I want to create a telerik report in silverlight application which will take a list of string items as parameter. How is it possible to create such report in silverlight? (I want to show a list of items in a grid in the report.).

Regards. 
0
Peter
Telerik team
answered on 26 Apr 2010, 02:18 PM
Hello Amruta,

If you want to access the Report Parameters from Silverlight please check out the Programmatic Initialization of Report Parameter Values in Telerik Reporting Silverlight Viewer blog.

As to the grid layout we advise you to use the Table item.

Sincerely yours,
Peter
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
Nick Wood
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
LE DREAU Steeve
Top achievements
Rank 1
Amruta
Top achievements
Rank 1
Peter
Telerik team
Share this question
or