EcommerceTransformationFunctionsMarkEnabledAndDisabledItems Method |
Sets different css styles to enabled and disabled dropdownlist items.
Namespace: CMS.Ecommerce.Web.UIAssembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 11.0.0
Syntax public static void MarkEnabledAndDisabledItems(
DropDownList drpTemp,
string valueFieldName,
string statusFieldName,
string itemEnabledStyle = null,
string itemDisabledStyle = null
)
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 (Optional)
- Type: SystemString
Enabled item style - itemDisabledStyle (Optional)
- Type: SystemString
Disabled item style
See Also