Radio Button: Conversion from ASPX to HTML and TypeScript
The following tables will help you to convert the ASPX elements that are related to radio buttons to HTML or TypeScript elements.
PXGroupBox
The following table shows the correspondence between the PXGroupBox element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXGroupBox
|
Use the qp-radio and qp-radio-item tags in HTML instead. For details about this approach, see Radio Button: Configuration. |
Caption
|
Specify the DisplayName property in the PXUIField attribute of the respective DAC field. |
CommitChanges
|
Use the CommitChanges option of
PXFieldState in TypeScript, as the following code shows. With
this option, the control commits changes to the server each time a user has changed
the value in the box and focus is no longer on the
box.
|
DataField
|
Use the name attribute of the field tag or the control-state attribute of the qp-field tag in HTML to bind the control to a data field. |
ID
|
Use the id attribute of the qp-field tag if this tag is used as a replacement. For the field tag, the ID is not used. |
PXRadioButton
The following table shows the correspondence between the PXRadioButton element and the HTML or TypeScript elements. During the conversion of ASPX pages to HTML and TypeScript, you need to replace these ASPX elements with their analogs in HTML or TypeScript.
ASPX | HTML or TypeScript |
---|---|
PXRadioButton
|
Use the qp-radio-item tag or the options
property of the config attribute of the
qp-radio tag, as shown in the following code, in HTML instead.
For details about the approach, see Radio Button: Configuration.
|
Text
|
Use the text property inside the options property of the config attribute, or use the text attribute of the qp-radio-item tag in HTML. |
Value
|
Use the value property inside the options property of the config attribute, or use the text attribute of the qp-radio-item tag in HTML. |
Obsolete ASPX Controls and Properties
The following table lists the obsolete ASPX elements that are related to radio buttons. You do not need to replace these ASPX elements with any HTML or TypeScript elements.
ASPX Control | Properties |
---|---|
PXGroupBox |
|
PXRadioButton |
|