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
XPClassInfoThe 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
XPClassInfoThe 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
CriteriaOperatorA 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
XPClassInfoThe 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
CriteriaOperatorA 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
XPClassInfoThe 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
CriteriaOperatorA 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
IContainerA 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
IContainerA container that is the owner of the created XPInstantFeedbackView.
serviceProvider
IServiceProviderAn 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
IServiceProviderAn 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
stringThe name of the assembly that contains the required persistent type.
typeName
stringThe 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
stringThe name of the assembly that contains the required persistent type.
typeName
stringThe 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
CriteriaOperatorA 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
stringThe name of the assembly that contains the required persistent type.
typeName
stringThe 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
CriteriaOperatorA 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
stringThe name of the assembly that contains the required persistent type.
typeName
stringThe 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
CriteriaOperatorA 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
TypeA 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
TypeA 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
CriteriaOperatorA 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
TypeA 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
CriteriaOperatorA 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
TypeA 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
CriteriaOperatorA 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
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
CreateRuntimeProxy(XPAsyncListServerCore)
protected virtual AsyncListServer2DatacontrollerProxy CreateRuntimeProxy(XPAsyncListServerCore core)
Parameters
Returns
- AsyncListServer2DatacontrollerProxy
DXClone()
protected virtual object DXClone()
Returns
DXCloneCreate()
protected virtual XPInstantFeedbackView DXCloneCreate()
Returns
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
ResolveSession
Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.
public event EventHandler<ResolveSessionEventArgs> ResolveSession