Class GridValueSectionedCollectionField<T, TView>
public class GridValueSectionedCollectionField<T, TView> : SectionedCollectionFieldBase<T, GridModel<T>, TView>, IField<IEntitySet<T>>, IField, IModel, INotifyPropertyChanged, IDataErrorInfo, IBoundField where T : IEntity<T>
Type Parameters
TTView
- Inheritance
-
FieldBase<IEntitySet<T>>FieldBase<IEntitySet<T>, TView>SectionedCollectionFieldBase<T, GridModel<T>, TView>GridValueSectionedCollectionField<T, TView>
- Implements
-
IField<IEntitySet<T>>
- Derived
- Inherited Members
- Extension Methods
Constructors
GridValueSectionedCollectionField(ISurface, string, bool, bool, IEntitySet<T>, Action<GridOptions>, IScreenCommand, bool, IEnumerable<IScreenCommand>)
public GridValueSectionedCollectionField(ISurface surface, string label, bool listEditable, bool rowsEditable, IEntitySet<T> boundSet = null, Action<GridOptions> configureGrid = null, IScreenCommand addCommand = null, bool suppressRemoveCommand = false, IEnumerable<IScreenCommand> otherCommands = null)
Parameters
surfaceISurfacelabelstringlistEditableboolrowsEditableboolboundSetIEntitySet<T>configureGridAction<GridOptions>addCommandIScreenCommandsuppressRemoveCommandboolotherCommandsIEnumerable<IScreenCommand>
Properties
AddButtonText
public string AddButtonText { get; }
Property Value
CanAdd
public virtual bool CanAdd { get; }
Property Value
DoAdd
public ShellCommand DoAdd { get; }
Property Value
Error
Gets an error message indicating what is wrong with this object.
public override string Error { get; }
Property Value
- string
An error message indicating what is wrong with this object. The default is an empty string ("").
HasChanges
public override bool HasChanges { get; }
Property Value
IsEditable
public override bool IsEditable { get; }
Property Value
Methods
Add()
public virtual Task Add()
Returns
CreateSubcontroller(IEntitySet<T>, Action<GridOptions>)
public virtual GridController<T> CreateSubcontroller(IEntitySet<T> entitySet, Action<GridOptions> configure)
Parameters
entitySetIEntitySet<T>configureAction<GridOptions>
Returns
CreateSubscreen(IEntitySet<T>)
protected override GridModel<T> CreateSubscreen(IEntitySet<T> entitySet)
Parameters
entitySetIEntitySet<T>
Returns
- GridModel<T>
Delete(T)
public virtual Task Delete(T entity)
Parameters
entityT