+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Polls error

Polls error

3 posts, 0 answered
  1. Vangelis
    Vangelis avatar
    153 posts
    Registered:
    07 Jan 2006
    27 May 2007
    Link to this post
    After creating a poll and testing various parameters in poll box layout on a preview page after voting I got the following error

    The 'questionsList' control must contain control of type: 'RadChart' and with id: 'questionChart'

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NotSupportedException: The 'questionsList' control must contain control of type: 'RadChart' and with id: 'questionChart'

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [NotSupportedException: The 'questionsList' control must contain control of type: 'RadChart' and with id: 'questionChart']
    Telerik.Polls.WebControls.ResultsBox.QuestionList_ItemCreated(Object sender, RepeaterItemEventArgs e) +954
    System.Web.UI.WebControls.Repeater.OnItemCreated(RepeaterItemEventArgs e) +105
    System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +92
    System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +454
    System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
    System.Web.UI.WebControls.Repeater.DataBind() +72
    Telerik.Polls.WebControls.ResultsBox.CreateChildControls() +672
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.WebControls.CompositeControl.get_Controls() +12
    Telerik.Cms.Web.PreviewPage.ValidateControls(ControlCollection coll) +612
    Telerik.Cms.Web.PreviewPage.ValidateControls(ControlCollection coll) +623
    Telerik.Cms.Web.PreviewPage.ValidateControls(ControlCollection coll) +623
    Telerik.Cms.Web.PreviewPage.ValidateControls(ControlCollection coll) +623
    Telerik.Cms.Web.PreviewPage.ValidateControls(ControlCollection coll) +623
    Telerik.Cms.Web.PreviewPage.OnPreRender(EventArgs e) +29
    System.Web.UI.Control.PreRenderRecursiveInternal() +77
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360


    Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

  2. Sean
    Sean avatar
    271 posts
    Registered:
    31 May 2006
    28 May 2007
    Link to this post
    Hi Vagelis,

    Did you by any chance edit the ResultsBox property(General Category) of the PollBox control.  I suspect that you have changed the UseLegend property to True, but haven't changed the TemplatePath property(Appearance Category) from ~/Sitefinity/ControlTemplates/Polls/ResultsBoxNoLegend.ascx to ~/Sitefinity/ControlTemplates/Polls/ResultsBoxLegend.ascx

    This is all through the Page Editor by the way. 

    I think though Telerik that either the user should have the option to choose UseLegend or be able to change the template, but not both options?

    Cheers
    Sean
  3. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    28 May 2007
    Link to this post
    Hi Sean,

    Thanks for drawing our attention to this. We will see what we can do about it. Actually, the main problem comes from the fact that legend and no legend templates are with completely different structure and the UseLegend property is given only to show an appropriate error message when some control is missing. Perhaps a better approach should be considered as this is misleading. Any suggestions are welcome.

    Best wishes,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
3 posts, 0 answered