<RadioButtonList>

The RadioButtonList tag renders as a series of mutually-exclusive option button at run-time.

Syntax

<RadioButtonList
    AccessKey="string"
    AppendDataBoundItems="True|False"
    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"
    BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset"
    BorderWidth="size"
    CellPadding="integer"
    CellSpacing="integer"
    CssClass="string"
    DataSourceID="string"
    DataTextField="string"
    DataTextFormatString="string"
    DataValueField="string"
    Enabled="True|False"
    Font-Bold="True|False"
    Font-Italic="True|False"
    Font-Names="string"
    Font-Overline="True|False"
    Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium| Large|X-Large|XX-Large"
    Font-Strikeout="True|False"
    Font-Underline="True|False"
    ForeColor="color name|#dddddd"
    Height="size"
    ID="string"
    Nullable="True|False"
    RepeatColumns="integer"
    RepeatDirection="Horizontal|Vertical"
    RepeatLayout="Table|Flow"
    Style="string"
    TabIndex="integer"
    TextAlign="Left|Right"
    ToolTip="string"
    Visible="True|False"
    Width="size"
>


    <listitem value="string" selected="True|False">Item1</listitem>
    <listitem value="string">Item2</listitem>
    ...
</RadioButtonList>

Remarks

 

Back to top

Example

<addform>
  ...
  <table>
    <tr>
      <td>
        <label target="txtFirstName" text="First Name" />
        <textbox id="txtFirstName" datafield="FirstName" datatype="string" />
      </td>
    </tr>
    <tr>
       <td>
         <label target="rblColors" text="Favorite Color" />
         
<radiobuttonlist id="rblColors" datafield="FavoriteColors" datatype="string">
           <listitem value="#00FF00">Green</listitem>
           <listitem value="#FF0000" selected="true">Red</listitem>
           <listitem value="#0000FF">Blue</listitem>
         </radiobuttonlist>

        </td>
     </tr>
     <tr>
       <td colspan="2">
         <addbutton text="Add"/> <cancelbutton text="Cancel"/>
       </td>
     </tr>
   </table>
</addform>
Back to top