RaiseEvents between controls(widgets) - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

RaiseEvents between controls(widgets)

  • RaiseEvents between controls(widgets)

  • Hi everyone,

    I am new to Sitefinity and was wondering how I can catch my Raised Event from one user control in an another.

    I found this old thread http://www.telerik.com/community/forums/aspnet/grid/catching-usercontrol-custom-events.aspx
     but this is between a page and the control. Since this can't be done on Sitefinity as we don't have access to the page , I am stuck.

    so how do I Raise an event in one control and catch it in an another.


  • 289230_codebehindtype.png
    Hi Mosu Babu,

    In Sitefinity 4.x you have the ability to create a custom page from which you pages to inherit. You have to create a class which inherits from ASP.NET Page class. There in the Init event of the page you have to traverse the control tree and find the controls for which you want to attach event handlers. Once you find those controls you have to create event handlers for them. The custom page type is set from each page's properties.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items