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

How to pass Generic List to Report in silverlight ?

1 Answer 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shimoli
Top achievements
Rank 1
Shimoli asked on 31 May 2011, 03:16 PM
In my application, I have List of fields ,related binding fields,Width alignment etc configuration in On Table in DB.On Silverlight application UI user can select fields those he want to display in report(Not all which are exist in table).So I want to create Report's design and binding Dynamically.For that I need to pass List<T> to report which contains Field related configuration(width,Label,Binding Field,Width etc).If I can do that,I will be able to bind data with that table using dynamic Stored Procedure.But in Silverlight,I do not have reference of Report into Silverlight application,as it is in class library.I am not able to get that Report's Object.Please suggest me what to do in such case?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Jun 2011, 04:47 PM
Hi Shimoli,

As you probably know Telerik Reports reside on the server and the Silverlight ReportViewer always requires the Telerik Reporting WCF Service, which acts as a communication interface between the client (Silverlight) and the report server. Generally we don't provide out of the box way to transfer List<T> from the client to the server side. Thus if applicable to your scenario our suggestion is to utilize our report parameters. Check out the attached sample report. To run the sample report add it to your class library and you will need the AdventureWorks database that comes with Telerik Reporting installation.

Best wishes,
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
Shimoli
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or