What Changed
The ValueEditingContext
class has been renamed to ValueEditContext
.
Reasons for Change
To make the class name more consistent with other public API names.
Impact on Existing Apps
This change affects your application if you use the ValueEditingContext
class in the application code:
Razor<DxFormLayout Data="@editFormData"
ItemUpdating="@((fieldName, newValue) => OnItemUpdating(fieldName, newValue))">
<DxFormLayoutItem Field="@nameof(FormDataItem.Position)" Caption="Position:" ColSpanMd="6">
<Template>
<DxComboBox Data="@(new List<string>() { "Sales Representative", "Designer" })"
SelectedItem="@(((string)((ValueEditingContext)context).Value))"
SelectedItemChanged="@(value => ((ValueEditingContext)context).OnChanged(value))">
</DxComboBox>
</Template>
</DxFormLayoutItem>
</DxFormLayout>
How to Update Existing Apps
In the scenario above, replace ValueEditingContext
with ValueEditContext
:
Razor<DxFormLayout Data="@editFormData"
ItemUpdating="@((fieldName, newValue) => OnItemUpdating(fieldName, newValue))">
<DxFormLayoutItem Field="@nameof(FormDataItem.Position)" Caption="Position:" ColSpanMd="6">
<Template>
<DxComboBox Data="@(new List<string>() { "Sales Representative", "Designer" })"
SelectedItem="@(((string)((ValueEditContext)context).Value))"
SelectedItemChanged="@(value => ((ValueEditContext)context).OnChanged(value))">
</DxComboBox>
</Template>
</DxFormLayoutItem>
</DxFormLayout>