using "object Data Source", object not only have properties, but useful methods too..
(i do not want user functions!!)
InnerBoundaries is a public property
=> works fine
Boundaries is a public method
=> incorrect usage of Fields object
this would be fine
Is it possible to use a Field fo a method like a MethodNode ?
1 Answer, 1 is accepted
answered on 01 Apr 2013, 08:39 AM
It is not possible to use the ObjectDataSource the way you are trying to do it since it is designed only for data retrieval. This means that any methods can only be used for data retrieval and cannot be executed. If you have objects that besides data have methods (please have in mind that this is not considered good practice) and you need to use them the best way would be to wrap them in user functions. You can also wrap them in properties (so that they get executed), but in that case the methods will not be able to receive parameters.
Since you do not want to use user functions it will be best if you are able to share with us your exact reasons for avoiding them so that we are able to advise you more accordingly.
the Telerik team
Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.