More in this section

Forums / Developing with Sitefinity / RadioButtonLists are rendered as <ul>

RadioButtonLists are rendered as &lt;ul&gt;

1 posts, 0 answered
  1. Gaurav Mehta
    Gaurav Mehta avatar
    43 posts
    09 Dec 2009
    05 Jan 2010
    Link to this post

    We are using 3.6 SP2
    We have problem with RadioButtonList rendering in our user control that is uploaded to Sitefinity.
    No matter what Repeatdirection / RepeatLayout we set Listitems are always rendered vertically as <ul>-<li>.
    It only happens inside Sitifinity pages. When we tested the control in aspx page (e.g different project ) it worked as expected.
    After some Research we came to know about this :
    As mentioned in this post it is due to control adpter provided for RadioButtonLists.
    We have tried to remove the line highlighted below and it worked:

          <adapter controlType="System.Web.UI.HtmlControls.HtmlForm" adapterType="Telerik.Cms.Web.FormAdapter, Telerik.Cms" /> 
          <adapter controlType="System.Web.UI.WebControls.RadioButtonList" adapterType="Telerik.Cms.Web.UI.Adapters.RadioButtonListAdapter" /> 

    But we don't want to use this approach. Is there any other workaround for this ?
    Can we instruct Sitefinity that it should not apply controladpter for radiobuttonlist when it is in particular page or something like that ?
    How do we fix this by "styling the RadioButtonLists with custom CSS." as mentioned in the above post ? Please let us know sample style  for this if possible.

1 posts, 0 answered