Sitefinity

Polls API Overview Send comments on this topic.
See Also
Developing with Sitefinity > Modules > Modules API > Polls > Polls API Overview

Glossary Item Box

The full name of API class for Polls module is Telerik.Polls.PollManager. This is the class you should use when working with Polls module API.

 

How to Start Using the PollManager Class

You can create a new instance of the PollManager class anywhere in your code in order to work with Polls module data. If working in an assembly, make sure you reference the Telerik.Polls assembly before you use the PollManager class.


In order to start using Polls module API, create a new instance of the PollManager class. There are two possible ways to do that:

 

Create new instance of PollManager with empty constructor:

Copy Code
// creates new instance of PollManager class with empty constructor,
// which means that default provider will be used
Telerik.Polls.PollManager pollManager = new Telerik.Polls.PollManager();

 

Create a new instance of PollManager with specified provider name:

Copy Code
// creates new instance of PollManager class with provider name as parameter,
// which means that PollManager will use specified provider when working with data
Telerik.Polls.PollManager pollManager = new Telerik.Polls.PollManager("MyCustomProvider");

  

 

Content

The Polls module allows users to easily create surveys and polls. The Polls module provides the PollBox public control which displays a poll.  

Following are the topics that explain how to work with different methods of PollManager:

Polls:

Questions:

 

See Also