Docs / Development / CheckBoxGroup Field Control

CheckBoxGroup Field Control

Although this feature is supported in sensenet 7, it is built on the old Web Forms technology that you should not use for new projects. We encourage you to use a more modern UI solution using our client-side packages.

The CheckBoxGroup Field Control displays a list of checkboxes for selecting an option from a single- or multiple-selection Choice field.

When the underlying Choice Field is configured to allow extra value an extra textbox is rendered next to the dropdown control.

Supported Field types



   <sn:CheckBoxGroup ID="CheckBoxGroup1" runat="server" FieldName="Style" SelectedValueType="Value" />


The CheckBoxGroup Field Control renders a Label control in Browse mode and a CheckBoxList accompanied with a TextBox - the latter for an optional extra value - in Edit mode.

Browse view template

<%@  Language="C#" %>
<asp:Label ID="InnerControl" runat="server" />

Edit view template

<%@  Language="C#" %>
<asp:CheckBoxList CssClass="sn-ctrl sn-ctrl-checkboxgroup" ID="InnerControl" runat="server" />
<asp:TextBox CssClass="sn-ctrl sn-ctrl-text sn-ctrl-extravalue" ID="ExtraTextBox" runat="server" />


Simple example

   <sn:CheckBoxGroup ID="CheckBoxGroup1" runat="server" FieldName="Style" />

Templated example

   <sn:CheckBoxGroup ID="CheckBoxGroup1" runat="server" FieldName="Style">
         <asp:CheckBoxList ID="InnerControl" runat="server" />
         <asp:TextBox ID="ExtraTextBox" runat="server" />

Is something missing? See something that needs fixing? Propose a change here.