SPUserPoll for SharePoint 2013

I’ve just published the first beta build of SPUserPoll for SharePoint 2013 to CodePlex. This is a complete overhaul from previous versions so has been built from the ground up to ensure supportability, maintainability and stability.

This build largely breaks compatibility with previous versions of SPUserPoll due to the massive amount of changes done. While the lists used for previous versions of SPUserPoll will continue to work, not much else will migrate cleanly. The existing lists will need the SPUserPoll field removed as it’s functionality is now out of the box.

Complete scrap of existing code base, refactored from scratch

No more SPSecurity.RunAsElevated

Removed HttpContext and HttpSession usage

Removed Microsoft Charts

Layout and charts are now cross-browser

Chart scales to available area

Optimized Queries

Migrated to a SharePoint 2013 Visual Studio solution

All lists are now referenced using SPContext

Poll lists are now created at the SPWeb level not the SPSite.RootWeb

Removed need for HttpCache, all queries are cached using standard SharePoint query caching

Lists are created automatically as needed

Significant memory optimization

Removed SPUserPoll custom field altogether

Charts built using jqPlot

Updated and simplified user interface

Initial work to make SPUserPoll work with SharePoint Online. After this build the only two open items to allow for sandbox deployment are

Needs client object model driven editing of the web part

Currently still using SPSecurity.RunAsElevated for logging end user votes

Initial work to make SPUserPoll work with SharePoint Online. After this build the only two open items to allow for sandbox deployment are

Needs client object model driven editing of the web part

Currently still using SPSecurity.RunAsElevated for logging end user votes