Localize Option Set Items

The dxSelectBox.option function is used in customization code to access the name of the option set directly from the control, so localization of optionSetItem would return the localized DisplayName instead of the expected Name.

The rendering for the select box has been modified so that it uses the DisplayName attribute of the option set item as display name instead of the Name attribute.

The below will return the option set item name, and not the translated text:

Copy

$("#ebsContainerContent_xxx_list").dxSelectBox("instance").option("text")
$("#ebsContainerContent_xxx_list").dxSelectBox("instance").option("displayValue")