Hello. I
have created a report using the Standalone Designer. I am able to display the
report in an MVC view using an HTML5 Report Viewer but I have not been able to
display data using ObjectDataSource and an in-memory business object.
I found
this post by Stef on the forums (16 Jul 2014):
“The HTML5 Report Viewer and the Reporting REST
service does not use the MVC concept. Thus if you have a model containing data
or other information required in your reports, you need to implement a logic to
access that model in the reports' controller e.g. to store the data and access
it by key in the service's resolver, or to modify the reports to use such data
source component, that wraps a data retrieval method having access to that
model.”
¿Could you
please elaborate how this is done?
The post
continues: “… A demo
of a report that uses a custom data retrieval method is available in the local
examples under C:\Program Files (x86)\Telerik\Reporting Q2 2014\Examples\CSharp\ReportLibrary\DataBinding.
The ListBoundReport uses an ObjectDataSource to retrieve data from a custom
business object. This business object can be modified anywhere in the
application, when the report is requested its ObjectDataSource will search for
the assigned data retrieval method and will get the data.”
I have
reviewed the example but I still don’t get how it works. The objectDataSource1
has DataSource assigned but no DataMember assigned. Shouldn’t the DataMember
property contain the data retrieval method name mentioned in Stef’s post to get
the data? In any case, how does it know what instance of the class should be
used to retrieve the data from? Let’s say I have a Product class and there are
2 instances of this class: productA and productB, How do I tell ObjectDataSource
to use product for instance?
Thank you very much in advanced,
Humberto
Hi!
I'm currently working on a project, where I would need a dynamic table with the possibilty of adding rows to the existing template (you can see that one in the attachments). I just can't find a proper solution on how to create tables in code.
Thanks for the replys in advance!
I have written several dozen programs to date which take advantage of the Telerik AJAX suite and Telerik Reports. The combination has been very effective. As time has progressed we have updated our operating environment so that the consideration of going pure HTML5 is now an option.
What is needed to migrate existing application viewers and reports from their existing viewer and report layout? My reading of the documentation suggests that I might have unknowingly coded myself into a blind end. The HTML 5 reports seem to use a different file extension and I cannot find any means of conversion between the two layouts. Am I reading the "tea leaves" correctly?
As things now sit the existing apps are asp.net Ajax web forms type combined with Telerik controls and forms. New projects will be started with MVC/Kendo solutions however I would love to be able to use existing reports without having to rewrite everything and use a HTML5 viewer. With one program having 85+ unique reports you can see my problem.
Any insight and pointers would be appreciated. This is in no way intended as a slight against Telerik. Their products have been extremely useful and I look forward to getting to the "newer" technologies.
Hi,
I'm creating a graph for a sale report, and there is some details that I'm not able to configure to my need.
See the attached image to see what I have up to now.
There is two things missing :
1) I'd like to increase the spacing between the Y axis and the first bar, to have a bit more room between the bar label at the top and the axis. I tried padding on the axis, the bar label, the plotarea and those doesn't seem to work.
2) I have two sector in this case that have a value of zero, why don't they have a label shown?
Thanks for you help,
Maxime
Hi to all,
I'm trying to use a ObjectDataSource, this one is configurated using a method that return a single object, this object has several collection (List<OtherMyObject>) as property.
If I what show my first object (several property as string or datetime), and then show something of relatives collection into a table?
I note that in DataExplorer dock shows my collections but I don't see its properties.
How can I set my Table with this collection, setting relative properties?