Table of Contents

Class XPInstantFeedbackView

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

A data source that binds DevExpress grid controls with data tables and allows retrieving data from the server side in InstantFeedback mode.

public class XPInstantFeedbackView : Component, IComponent, IDisposable, IListSource, IXPClassInfoProvider, IXPDictionaryProvider, IDXCloneable
Inheritance
XPInstantFeedbackView
Implements
IDXCloneable
Inherited Members

Constructors

XPInstantFeedbackView()

Initializes a new XPInstantFeedbackView instance.

public XPInstantFeedbackView()

XPInstantFeedbackView(XPClassInfo)

Initializes a new XPInstantFeedbackView instance that is assigned object type metadata.

public XPInstantFeedbackView(XPClassInfo classInfo)

Parameters

classInfo XPClassInfo

The XPClassInfo metadata that describes the target data table in the data store.

XPInstantFeedbackView(XPClassInfo, ServerViewProperty[], CriteriaOperator)

Uses specified settings to initialize a new XPInstantFeedbackView instance for a specified persistent class.

public XPInstantFeedbackView(XPClassInfo classInfo, ServerViewProperty[] properties, CriteriaOperator fixedCriteria)

Parameters

classInfo XPClassInfo

The XPClassInfo metadata that describes the target data table in the data store.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

XPInstantFeedbackView(XPClassInfo, ServerViewProperty[], CriteriaOperator, Action<ResolveSessionEventArgs>, Action<ResolveSessionEventArgs>)

Uses specified settings to initialize a new XPInstantFeedbackView instance for a specified persistent class.

public XPInstantFeedbackView(XPClassInfo classInfo, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, Action<ResolveSessionEventArgs> resolveSession, Action<ResolveSessionEventArgs> dismissSession)

Parameters

classInfo XPClassInfo

The XPClassInfo metadata that describes the target data table in the data store.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession Action<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession Action<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

XPInstantFeedbackView(XPClassInfo, ServerViewProperty[], CriteriaOperator, EventHandler<ResolveSessionEventArgs>, EventHandler<ResolveSessionEventArgs>)

Initializes a new XPInstantFeedbackView instance for a specified persistent class, and assigns specified settings to this instance.

public XPInstantFeedbackView(XPClassInfo classInfo, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, EventHandler<ResolveSessionEventArgs> resolveSession, EventHandler<ResolveSessionEventArgs> dismissSession)

Parameters

classInfo XPClassInfo

The XPClassInfo metadata that describes the target data table in the data store.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

XPInstantFeedbackView(IContainer)

Initializes a new XPInstantFeedbackView instance and adds it to a container.

public XPInstantFeedbackView(IContainer container)

Parameters

container IContainer

A container that is the owner of the created XPInstantFeedbackView.

XPInstantFeedbackView(IContainer, IServiceProvider)

Initializes a new instance of the XPInstantFeedbackView class with specified settings.

public XPInstantFeedbackView(IContainer container, IServiceProvider serviceProvider)

Parameters

container IContainer

A container that is the owner of the created XPInstantFeedbackView.

serviceProvider IServiceProvider

An object that implements the IServiceProvider interface. This object is assigned to the ServiceProvider property of the XPInstantFeedbackView’s default session.

XPInstantFeedbackView(IServiceProvider)

Initializes a new instance of the XPInstantFeedbackView class with specified settings.

public XPInstantFeedbackView(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

An object that implements the IServiceProvider interface. This object is assigned to the ServiceProvider property of the XPInstantFeedbackView’s default session.

XPInstantFeedbackView(string, string)

Initializes a new XPInstantFeedbackView instance for a specified persistent class.

public XPInstantFeedbackView(string assemblyName, string typeName)

Parameters

assemblyName string

The name of the assembly that contains the required persistent type.

typeName string

The name of the persistent type that defines the target database table.

XPInstantFeedbackView(string, string, ServerViewProperty[], CriteriaOperator)

Uses specified settings to initialize a new XPInstantFeedbackView instance for a specified persistent class.

public XPInstantFeedbackView(string assemblyName, string typeName, ServerViewProperty[] properties, CriteriaOperator fixedCriteria)

Parameters

assemblyName string

The name of the assembly that contains the required persistent type.

typeName string

The name of the persistent type that defines the target database table.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

XPInstantFeedbackView(string, string, ServerViewProperty[], CriteriaOperator, Action<ResolveSessionEventArgs>, Action<ResolveSessionEventArgs>)

Initializes a new XPInstantFeedbackView instance for a specified persistent class, and assigns specified settings to this instance.

public XPInstantFeedbackView(string assemblyName, string typeName, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, Action<ResolveSessionEventArgs> resolveSession, Action<ResolveSessionEventArgs> dismissSession)

Parameters

assemblyName string

The name of the assembly that contains the required persistent type.

typeName string

The name of the persistent type that defines the target database table.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession Action<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession Action<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

XPInstantFeedbackView(string, string, ServerViewProperty[], CriteriaOperator, EventHandler<ResolveSessionEventArgs>, EventHandler<ResolveSessionEventArgs>)

Uses specified settings to initialize a new XPInstantFeedbackView instance for a specified persistent class.

public XPInstantFeedbackView(string assemblyName, string typeName, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, EventHandler<ResolveSessionEventArgs> resolveSession, EventHandler<ResolveSessionEventArgs> dismissSession)

Parameters

assemblyName string

The name of the assembly that contains the required persistent type.

typeName string

The name of the persistent type that defines the target database table.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

XPInstantFeedbackView(Type)

Initializes a new XPInstantFeedbackView instance for a specified object type.

public XPInstantFeedbackView(Type objectType)

Parameters

objectType Type

A persistent type. This value is assigned to the ObjectType property.

XPInstantFeedbackView(Type, ServerViewProperty[], CriteriaOperator)

Initializes a new XPInstantFeedbackView instance that has specified settings.

public XPInstantFeedbackView(Type objectType, ServerViewProperty[] properties, CriteriaOperator fixedCriteria)

Parameters

objectType Type

A persistent type. This value is assigned to the ObjectType property.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

XPInstantFeedbackView(Type, ServerViewProperty[], CriteriaOperator, Action<ResolveSessionEventArgs>, Action<ResolveSessionEventArgs>)

Initializes a new XPInstantFeedbackView instance that has specified settings.

public XPInstantFeedbackView(Type objectType, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, Action<ResolveSessionEventArgs> resolveSession, Action<ResolveSessionEventArgs> dismissSession)

Parameters

objectType Type

A persistent type. This value is assigned to the ObjectType property.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession Action<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession Action<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

XPInstantFeedbackView(Type, ServerViewProperty[], CriteriaOperator, EventHandler<ResolveSessionEventArgs>, EventHandler<ResolveSessionEventArgs>)

Initializes a new XPInstantFeedbackView instance that has specified settings.

public XPInstantFeedbackView(Type objectType, ServerViewProperty[] properties, CriteriaOperator fixedCriteria, EventHandler<ResolveSessionEventArgs> resolveSession, EventHandler<ResolveSessionEventArgs> dismissSession)

Parameters

objectType Type

A persistent type. This value is assigned to the ObjectType property.

properties ServerViewProperty[]

An array of ServerViewProperty objects that specifies property names to be loaded from the data store.

fixedCriteria CriteriaOperator

A filter expression to be applied to data on the data store side.

resolveSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the ResolveSession event.

dismissSession EventHandler<ResolveSessionEventArgs>

A delegate that is attached to the DismissSession event.

Properties

FixedFilterCriteria

Specifies the criteria used to filter items on the data store side. Bound data-aware controls never affect the criteria.

[TypeConverter("DevExpress.Xpo.Design.CriteriaConverter, DevExpress.Xpo.v24.1.Design, Version=24.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a")]
public CriteriaOperator FixedFilterCriteria { get; set; }

Property Value

CriteriaOperator

An expression that filters items on the data store side.

FixedFilterString

Specifies a string that contains the criteria used to filter items on the data store side. Bound data-aware controls never affect the criteria.

[Browsable(false)]
public string FixedFilterString { get; set; }

Property Value

string

A string that represents a filter expression. The expression contains criteria to filter items on the data store side.

IsDesignMode

protected bool IsDesignMode { get; }

Property Value

bool

ObjectType

Gets or sets the type of items the target data table contains.

[TypeConverter(typeof(XPInstantFeedbackSourceObjectTypeConverter))]
public Type ObjectType { get; set; }

Property Value

Type

The type of items the data source contains.

Properties

Gets a ServerViewPropertiesCollection object that contains information on a persistent type’s property names, criteria, and sort order.

public ServerViewPropertiesCollection Properties { get; }

Property Value

ServerViewPropertiesCollection

A ServerViewProperty object collection that contains information on a persistent type’s property names, criteria, and sort order.

Methods

CreateRuntimeCore()

protected virtual XPAsyncListServerCore CreateRuntimeCore()

Returns

XPAsyncListServerCore

CreateRuntimeProxy(XPAsyncListServerCore)

protected virtual AsyncListServer2DatacontrollerProxy CreateRuntimeProxy(XPAsyncListServerCore core)

Parameters

core XPAsyncListServerCore

Returns

AsyncListServer2DatacontrollerProxy

DXClone()

protected virtual object DXClone()

Returns

object

DXCloneCreate()

protected virtual XPInstantFeedbackView DXCloneCreate()

Returns

XPInstantFeedbackView

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

PopulateProperties()

Clears the Properties collection and populates it with properties of the persistent type specified by the ObjectType property.

public void PopulateProperties()

Refresh()

Refreshes the XPInstantFeedbackView.

public void Refresh()

Events

DismissSession

Occurs when the XPInstantFeedbackView no longer needs the Session it used to retrieve objects from the data store.

public event EventHandler<ResolveSessionEventArgs> DismissSession

Event Type

EventHandler<ResolveSessionEventArgs>

ResolveSession

Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.

public event EventHandler<ResolveSessionEventArgs> ResolveSession

Event Type

EventHandler<ResolveSessionEventArgs>