What Changed
We changed the DxDataGridColumn.AllowSort and DxDataGridColumn.EditorVisible property's value type from DefaultBoolean to nullable Boolean (bool?
) and removed the DefaultBoolean
enumeration from the public API.
Reasons for Change
This makes it easier for developers to write clear and native code. Now, you do not have to use the additional enumeration and its values to define Boolean properties. You can simply use true
/false
values. If the property is undefined (set to NULL
), the DxDataGridColumn.AllowSort property inherits its value from the DxDataGrid.AllowSort property, and the DxDataGridColumn.EditorVisible property inherits its value from the DxDataGridColumn.Visible property.
Impact on Existing Apps
This change affects your application if you used these properties in your code:
Razor<DxDataGrid Data="@DataSource">
<DxDataGridColumn Field="@nameof(ProductFlat.Id)"
AllowSort="DefaultBoolean.True"
EditorVisible="DefaultBoolean.False">
</DxDataGridColumn>
@\*...\*@
</DxDataGrid>
How to Update Existing Apps
In the scenario above, replace DefaultBoolean.True
with true
, and DefaultBoolean.False
with false
:
Razor<DxDataGrid Data="@DataSource">
<DxDataGridColumn Field="@nameof(ProductFlat.Id)"
AllowSort="true"
EditorVisible="false">
</DxDataGridColumn>
@\*...\*@
</DxDataGrid>