More in this section

Forums / Developing with Sitefinity / RaiseEvents between controls(widgets)

RaiseEvents between controls(widgets)

2 posts, 0 answered
  1. Mosu Babu
    Mosu Babu avatar
    1 posts
    Registered:
    13 Apr 2010
    27 Jul 2011
    Link to this post

    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.

    regards

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    01 Aug 2011
    Link to this post
    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
2 posts, 0 answered