Declined
Last Updated: 31 Jul 2014 12:59 by Kevin
Kevin
Created on: 08 May 2014 18:24
Type: Feature Request
0
Stand Alone Designer: Expose Events
I would like to be able to write an expression that will call a user function when the ItemDataBound event fires for the report.  This would allow me to wire up the custom functionality that we have built so that the user can see the result from the preview in the designer.  Currently the user has to go to a preview window in our application to see the result but if I had a way to wire the ItemDataBound event for the report then I could make it possible to see the result without leaving the designer.  

I thought that if you made this possible for the report it probably would make sense to enable it for all controls since they all have the the ItemDataBinding and ItemDataBound events.  In my case I don't know how I could implement this any other way because it needs to run after the binding has completed for the entire report.
2 comments
Kevin
Posted on: 12 May 2014 15:25
I understand that you can accomplish most required tasks without using events by using the approaches that you mentioned.  We already are using all of them extensively.  The problem in our case is that the logic needs to be run on more than one control and needs to run after the entire report has been bound so I can tell what is being displayed in each control.

Expression - Only apply to a single control or binding
Bindings - Occur prior to the controls being bound so are too early in the life cycle
User Functions - Is what I am looking to use to in the event to run the logic that I want

Nothing is currently available to allow me to do this other than using the ItemDataBound event for the report.  The issue with this is that the user can not preview the results in the stand alone designer because I have no way to wire up the functionality.  This is why I was looking to be able to use a user function for the event.

I realize that I should use the appropriate tool of for what I am trying to accomplish and I tend to do so.  That being said I just don't have any other way to accomplish what I am trying to do without using the event and I want to see the results when I preview from the designer.  If I had a way to wire up the event then it would fire when I preview the report and I would be able to see the results.  I am currently doing this by exiting the designer and using my own form with a report viewer that programmatically wires up the event.
ADMIN
Nasko
Posted on: 12 May 2014 14:58
Hello Kevin,

Thank you for the provided feedback.

It is highly recommended not to use events when designing reports. The reporting engine provides another powerful means to achieve the same functionality. For example instead of using events to accomplish your goals you can take advantage of Expressions, User Functions and Bindings. For more information refer to our online documentation: http://www.telerik.com/help/reporting.
Also note that even if you wire an event to the report you will still need to preview the report or view it in an application to see the effects.
Please elaborate further on your scenario, so we can better understand what you want to achieve.