User Functions in base classes?

6 posts, 1 answers
  1. Stephen McDaniel
    Stephen McDaniel avatar
    35 posts
    Member since:
    Mar 2008

    Posted 14 Apr 2008 Link to this post

    Currently, it seems you can only use User Functions that are declared at the current report level.  All of the reports I make extend from a custom "BaseReport" (that itself extends from Telerik.Reporting.Report).  Within this BaseReport class I have static methods that I would like to use as User Functions.

    Is there a way (without duplicating code in all my ancestor classes), to use methods in base classes as User Functions?
  2. Svetoslav
    Admin
    Svetoslav avatar
    649 posts

    Posted 16 Apr 2008 Link to this post

    Hello Stephen McDaniel,

    I am afraid that the current version considers only the public static non-void methods of the report as user function and allows them to be used in the binding expression. We have plans to improve the whole data processing mechanism in one of the subsequent versions of the control, so we'll do our best to address this limitation as well.

    Please excuse us for the temporary inconvenience.

    Sincerely yours,
    Svetoslav
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft banner
  4. Kevin
    Kevin avatar
    2 posts
    Member since:
    Apr 2009

    Posted 06 Mar 2010 Link to this post

    Has there been any improvements in this area?  We are having to continually copy functions manually between reports.
  5. Answer
    Massimiliano Bassili
    Massimiliano Bassili avatar
    323 posts
    Member since:
    May 2006

    Posted 08 Mar 2010 Link to this post

    As you can see in the User Functions article (http://www.telerik.com/help/reporting/designing-report-user-functions.html), there are Assembly scoped user functions, so that you do not have to copy a function between reports, as long as they reside in the same assembly. This post is pretty old and that functionality has been available for quite some time now!

    Cheers
  6. Dan
    Dan avatar
    4 posts
    Member since:
    Jan 2011

    Posted 08 Feb 2011 Link to this post

    The above link does not appear to be valid.  Can you provide a valid link?
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 14 Feb 2011 Link to this post

    Hello Dan,

    Both the .chm help and online documentation have search available, so please use it to find what you are looking for. A quick search for "user functions" finds the correct link to this topic - User Functions

    Regards,
    Steve
    the Telerik team
    Get started with Telerik Reporting with numerous videos and detailed documentation.
Back to Top
DevCraft banner