More in this section

Poll Events

2 posts, 0 answered
  1. Levi
    Levi avatar
    12 posts
    Registered:
    29 Jun 2008
    23 Dec 2009
    Link to this post
    Are there poll module events I can hook into for my module?  For example, I would like to hook into the process of creating, modifying or deleting answers, questions and the poll itself.  Is this possible?  I see there is a Telerik.Polls.PollManager.Executing event I can hook into but it doesn't appear to ever be called.

    I am using Sitefinity 3.5.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Dec 2009
    Link to this post
    Hi Levi,

    The events comes from ManagerBase class, but there is no event subscription in Polls module for these events. The methods for Creating and Editing poll items seems to be private, so the only way that I can see to get some reference when a poll is created or edited is mapping the external templates PollItemEdit and PollItemNew and subscribe for the LinkButton control with ID="okBtn". You can easily access the poll item id from the QueryString

    string ParameterKey = "Param";
    string id = CmsHttpRequest.Current.QueryStirng[this.ParameterKey];


    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered