[DevExpress Support Team: CLONED FROM T326296: How to remove or hide the base class from the New Action's items list]
C#using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule; using DevExpress.Persistent.BaseImpl;
// ...
public class CustomizeNewActionItemsListController : ObjectViewController<ObjectView, Task> {
protected override void OnActivated() {
base.OnActivated();
NewObjectViewController controller = Frame.GetController<NewObjectViewController>();
if(controller != null) {
controller.NewObjectActionItemListMode = NewObjectActionItemListMode.LastDescendantsOnly;
}
}
}
I tried to implement this in DC. But I am getting 'System.NullReferenceException: 'Object reference not set to an instance of an object.' '.What am I doing wrong? Thanks
I cannot reproduce this issue. See the attached sample project with my test configuration. Let me know how I should modify this project to receive the exception. Also, provide the exception's Call Stack and clarify your DevExpress version.