EcommerceTransformationFunctionsMarkEnabledAndDisabledItems Method (DropDownList, String, String, String, String) |
Sets different css styles to enabled and disabled dropdownlist items.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax public static void MarkEnabledAndDisabledItems(
DropDownList drpTemp,
string valueFieldName,
string statusFieldName,
string itemEnabledStyle,
string itemDisabledStyle
)
Parameters
- drpTemp
- Type: System.Web.UI.WebControlsDropDownList
Dropdownlist control - valueFieldName
- Type: SystemString
Field name with ID value - statusFieldName
- Type: SystemString
Field name with status value - itemEnabledStyle
- Type: SystemString
Enabled item style - itemDisabledStyle
- Type: SystemString
Disabled item style
See Also