Class XPServerModeView
- 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.
public class XPServerModeView : Component, IComponent, IDisposable, ISupportInitializeNotification, ISupportInitialize, IListSource, IXPClassInfoAndSessionProvider, IXPClassInfoProvider, ISessionProvider, IObjectLayerProvider, IDataLayerProvider, IXPDictionaryProvider, IColumnsServerActions, IDXCloneable
- Inheritance
-
XPServerModeView
- Implements
-
IColumnsServerActionsIDXCloneable
- Inherited Members
Constructors
XPServerModeView()
Initializes a new XPServerModeView instance.
public XPServerModeView()
XPServerModeView(Session, XPClassInfo)
Uses a Session and object type metadata to initialize a new XPServerModeView instance.
public XPServerModeView(Session session, XPClassInfo objectClassInfo)
Parameters
session
SessionThe session used to load persistent objects. This value is assigned to the Session property.
objectClassInfo
XPClassInfoThe XPClassInfo metadata that describes the target data table in the data store.
XPServerModeView(Session, XPClassInfo, CriteriaOperator)
Uses a Session, object type metadata, and filter criteria to initialize a new XPServerModeView instance.
public XPServerModeView(Session session, XPClassInfo objectClassInfo, CriteriaOperator fixedFilterCriteria)
Parameters
session
SessionThe session used to load persistent objects. This value is assigned to the Session property.
objectClassInfo
XPClassInfoThe XPClassInfo metadata that describes the target data table in the data store.
fixedFilterCriteria
CriteriaOperatorAn expression that calculates values to be displayed in a data table. The expression is assigned to the Properties property.
XPServerModeView(Session, Type)
Uses a Session and object type to initialize a new XPServerModeView instance.
public XPServerModeView(Session session, Type objectType)
Parameters
session
SessionThe session used to load persistent objects. This value is assigned to the Session property.
objectType
TypeA persistent type. This value is assigned to the ObjectType property and indirectly assigned to the ObjectClassInfo property.
XPServerModeView(Session, Type, CriteriaOperator)
Uses a Session, an object type and filter criteria to initialize a new XPServerModeView instance.
public XPServerModeView(Session session, Type objectType, CriteriaOperator fixedFilterCriteria)
Parameters
session
SessionThe session used to load persistent objects. This value is assigned to the Session property.
objectType
TypeA persistent type. This value is assigned to the ObjectType property and indirectly assigned to the ObjectClassInfo property.
fixedFilterCriteria
CriteriaOperatorAn expression that calculates values to be displayed in a data table. The expression is assigned to the Properties property.
XPServerModeView(IContainer)
Initializes a new XPServerModeView instance and adds it to a container.
public XPServerModeView(IContainer container)
Parameters
container
IContainerA container that is the owner of the created XPServerModeView.
Fields
IsInit
protected bool IsInit
Field Value
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
ObjectClassInfo
Gets or sets the XPClassInfo that describes the type of items the target data table contains.
[TypeConverter("DevExpress.Xpo.Design.ObjectClassInfoTypeConverter, DevExpress.Xpo.v24.1.Design, Version=24.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a")]
public XPClassInfo ObjectClassInfo { get; set; }
Property Value
- XPClassInfo
Metadata that relates to the type of items the target data table contains.
ObjectType
Gets or sets the type of items the target data table contains.
[Browsable(false)]
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.
Session
Gets or sets a session used to load persistent objects.
[TypeConverter("DevExpress.Xpo.Design.SessionReferenceConverter, DevExpress.Xpo.v24.1.Design, Version=24.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a")]
public Session Session { get; set; }
Property Value
- Session
The session used to load persistent objects.
Methods
AddProperty(CriteriaOperator)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(CriteriaOperator property)
Parameters
property
CriteriaOperatorThe expression used to calculate values in a column on the data store side.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
AddProperty(string)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(string property)
Parameters
property
stringA string value that specifies the expression used to calculate values in a column on the data store side. This value is assigned to the Property property.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
AddProperty(string, CriteriaOperator)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(string name, CriteriaOperator property)
Parameters
name
stringA string value that specifies the property name. This value is assigned to the Name property.
property
CriteriaOperatorThe expression used to calculate values in a column on the data store side.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
AddProperty(string, CriteriaOperator, SortDirection)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(string name, CriteriaOperator property, SortDirection sorting)
Parameters
name
stringA string value that specifies the property name. This value is assigned to the Name property.
property
CriteriaOperatorThe expression used to calculate values in a column on the data store side.
sorting
SortDirectionA SortDirection enumeration value that specifies a sort order for property values to be retrieved from the data store. This value is assigned to the Sorting property.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
AddProperty(string, string)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(string name, string property)
Parameters
name
stringA string value that specifies the property name. This value is assigned to the Name property.
property
stringA string value that specifies the expression used to calculate values in a column on the data store side. This value is assigned to the Property property.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
AddProperty(string, string, SortDirection)
Creates a new ServerViewProperty object and appends it to the Properties collection.
public ServerViewProperty AddProperty(string name, string property, SortDirection sorting)
Parameters
name
stringA string value that specifies the property name. This value is assigned to the Name property.
property
stringA string value that specifies the expression used to calculate values in a column on the data store side. This value is assigned to the Property property.
sorting
SortDirectionA SortDirection enumeration value that specifies a sort order for property values to be retrieved from the data store. This value is assigned to the Sorting property.
Returns
- ServerViewProperty
The ServerViewProperty object that was added to the Properties collection.
CreateServerModeCore()
protected virtual XpoViewServerModeCore CreateServerModeCore()
Returns
DXClone()
protected virtual object DXClone()
Returns
DXCloneCreate()
protected virtual XPServerModeView DXCloneCreate()
Returns
FatalException(Exception)
protected virtual void FatalException(Exception e)
Parameters
Inconsistent(ServerModeInconsistencyDetectedEventArgs)
protected virtual void Inconsistent(ServerModeInconsistencyDetectedEventArgs e)
Parameters
e
ServerModeInconsistencyDetectedEventArgs
IsInitialized()
protected bool IsInitialized()
Returns
OnResolveSession(ResolveSessionEventArgs)
protected virtual void OnResolveSession(ResolveSessionEventArgs args)
Parameters
OnServerExceptionThrown(ServerExceptionThrownEventArgs)
protected virtual void OnServerExceptionThrown(ServerExceptionThrownEventArgs e)
Parameters
PopulateProperties()
Clears the Properties collection and populates it with properties of the persistent type specified by the ObjectType property.
public void PopulateProperties()
Reload()
public void Reload()
Events
ResolveSession
Occurs when the XPServerModeView requests a Session to retrieve objects from the data store.
public event ResolveSessionEventHandler ResolveSession
Event Type
ServerExceptionThrown
Occurs when a data server throws an exception.
public event ServerExceptionThrownEventHandler ServerExceptionThrown