Share via


Visual InterDev

             

Creates an OptionGroup script object, which then creates a set of intrinsic HTML radio buttons that can be bound to data.

Remarks

You can set the properties of the OptionGroup control at design time using the Properties window and the OptionGroup Properties dialog box.

Set the ControlStyle property to create a horizontal or vertical group of radio buttons.

You can bind the OptionGroup control to one recordset and populate the list of options from another recordset by doing a lookup on the Lookup tab of the OptionGroup Properties dialog box.

If you want to create a static list instead of one that is data-bound, select the Static list option on the Lookup tab.

Note   The scripting platform specifies where an object's script is run – either on the client (Microsoft® Internet Explorer 4.0 DHTML) or on the server (ASP). Thus, the scripting platform determines whether the object is available under Client Objects & Events or Server Objects & Events in the Script Outline window.

For the OptionGroup control, the Scripting Platform property is specified on the General tab of the OptionGroup Properties dialog box. For more information, see the property. For detailed information about choosing a scripting platform, see Writing Script for Script Objects.

Scripting Notes

Call the hide, show, and isVisible methods to control how the list box is displayed.

To change the items of the OptionGroup object, call the addItem, removeItem, clear, and getCount methods.

To manipulate the current item call the getValue, setValue, getCaption, and setCaption methods.

To select an item, call the selectByValue, or selectByCaption, or selectByIndex. methods.

To return an individual radio button, call the getButton method.

For more information about the run-time object, see OptionGroup Script Object. For information on scripting and objects, see Scripting with Design-Time Controls and Script Objects.