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

how to access public methods of a class in telerik reporting

2 Answers 116 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
M
Top achievements
Rank 1
M asked on 07 Mar 2012, 11:18 AM
I am using q2 2011 telerik reporting for silverlight apps.
in access to data by object data source I can only access to properties of my main class(that defined by set and get) and I can not access to other public methos, why?I have a created class with some public method(c#) and no any property(set get ...) , when I connect to the "list" type class of this class I can not see the public methods but if I create a property(by set and get) I can see that properties! .Is any way for accessing to public methods? Thanks.maniaqrzep@yahoo.com

2 Answers, 1 is accepted

Sort by
0
Squall
Top achievements
Rank 1
answered on 07 Mar 2012, 03:18 PM
Hi,
you can access methods return data only if you set the method as ObjectDataSouce.DataMemember. 
SN
0
M
Top achievements
Rank 1
answered on 11 Mar 2012, 08:55 AM
Hi and Thanks for your reply. Supose you have a pre defined class with 50 methods (that have not created with set and get ...) . We have this class previously and we have not any permission for editing of this class. We must only use this class for other porposes. We want to use data returning of methods of this class. If we inherit a new class and redefine the new properties, this is dificalt and it take a long time. Is any easy way for accesing to this predefined methods?
Tags
Report Designer (standalone)
Asked by
M
Top achievements
Rank 1
Answers by
Squall
Top achievements
Rank 1
M
Top achievements
Rank 1
Share this question
or