What Changed
We removed the following GridListEditor properties:
ShowSelectionColumn
ShowAutoFilterRow
IsGroupPanelVisible
You can find their equivalents in the Application Model.
We also replaced the SetSelectedObjectsKeys(IEnumerable selectedObjectsKeys)
method with SetSelectedObjects(IEnumerable objectsToSelect)
.
Reasons for Change
These APIs were designed for internal purposes.
Impact on Existing Apps
If you use these APIs, you will get a compilation error. To address this error, do the following:
-
Use the
ShowSelectionColumn
,ShowAutoFilterRow
, andIsGroupPanelVisible
property equivalents from the Application Model:IModelListViewBlazor.ShowSelectionColumn
IModelListViewShowAutoFilterRow.ShowAutoFilterRow
IModelListView.IsGroupPanelVisible
-
If you used the
SetSelectedObjectsKeys
method, rewrite your code so that it uses theSetSelectedObjects
method instead. The following code demonstrates how to do this:
C#using System.Collections.Generic;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Actions;
using DevExpress.ExpressApp.Blazor.Editors.Grid;
using MainDemo.Module.BusinessObjects;
namespace MainDemo.Module.Blazor.Controllers {
public class MyViewController : ObjectViewController<ListView, DemoTask> {
public MyViewController() {
SimpleAction simpleAction = new SimpleAction(this, "Select Task", DevExpress.Persistent.Base.PredefinedCategory.Edit);
simpleAction.Execute += (s, e) => {
DemoTask task = ObjectSpace.FirstOrDefault<DemoTask>(d => d.Subject == "1Q Travel Spend Report");
if (task != null && View.Editor is GridListEditor listEditor) {
// the following line is obsolete
//listEditor.SetSelectedObjectsKeys(new List<DemoTask>() { ObjectSpace.GetKeyValue(task) });
listEditor.SetSelectedObjects(new List<DemoTask>() { task });
}
};
}
}
}