Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Display Total Votes for poll View modes: 
User avatar
Member
Member
rdiepenbrock - 8/21/2009 11:34:10 AM
   
Display Total Votes for poll
I want to display Total Votes in addition to the percentages for each poll I create. I've been trying to use the context macros, but with no luck. Is this possible?
Thanks,
Richard

User avatar
Member
Member
rdiepenbrock - 8/24/2009 9:46:38 AM
   
RE:Display Total Votes for poll
If anyone has any ideas, it would be helpful.
Thanks.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/25/2009 7:04:42 AM
   
RE:Display Total Votes for poll
Hello,


you would need to make uneasy custom changes to polls.

You could re-write the file:

<web site folder>\CMSModules\Polls\Controls\AnswerList.ascx.cs

add a OnExternalDataBound event to the grid and change the output of database result. You need to change the content of "AnswerCount" column.

The example of OnExternalDataBound event is in:

<web site folder>\CMSModules\EmailQueue\EmailQueue.aspx.cs


Best regards,
Helena Grulichova

User avatar
Member
Member
rdiepenbrock - 9/1/2009 9:24:51 AM
   
RE:Display Total Votes for poll
Are there any other examples of this I can review? Internal or external?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/2/2009 5:09:56 AM
   
RE:Display Total Votes for poll
Hi,

I am sorry but there is no example of this, only the mentioned in the Email sender, there you can see how to handle that event.

Best Regards,
Juraj Ondrus