Imports System Imports System.ComponentModel Imports System.Collections.Generic Imports System.Diagnostics Imports System.Text Imports DevExpress.ExpressApp Imports DevExpress.ExpressApp.Actions Imports DevExpress.Persistent.Base Imports DevExpress.ExpressApp.Web.SystemModule Imports DevExpress.ExpressApp.SystemModule Public Class ListViewProcessVC Inherits DevExpress.ExpressApp.ViewController(Of ListView) Public Sub New() MyBase.New() 'This call is required by the Component Designer. InitializeComponent() RegisterActions(components) End Sub Protected Overrides Sub OnActivated() MyBase.OnActivated() If CType(View.Model, IModelListViewAllowSort).IsListViewProcess Then Else Frame.GetController(Of ListViewController).EditAction.Active.SetItemValue("", False) Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", False) 'Frame.GetController(Of ListViewController).InlineEditAction.Active.SetItemValue("", False) End If End Sub Protected Overrides Sub OnDeactivated() MyBase.OnDeactivated() If CType(View.Model, IModelListViewAllowSort).IsListViewProcess Then Else Frame.GetController(Of ListViewController).EditAction.Active.SetItemValue("", True) Frame.GetController(Of ListViewProcessCurrentObjectController).Active.SetItemValue("", True) 'Frame.GetController(Of ListViewController).InlineEditAction.Active.SetItemValue("", False) End If End Sub End Class