projects/wms-framework/src/lib/models/controls/DataGridTemplateColumnModel.ts
Model class to represent DataGridTemplateColumn component
Public CellEditingTemplate |
Type : DataTemplate
|
Decorators :
@Dependency(DataGridTemplateColumnModel.CellEditingTemplateProperty)
|
Template for the edit mode of the cells |
Static CellEditingTemplateProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty('CellEditingTemplate', null, null)
|
CellEditingTemplate dependency property |
Public CellTemplate |
Type : DataTemplate
|
Decorators :
@Dependency(DataGridTemplateColumnModel.CellTemplateProperty)
|
Termplate for the non edit mode of the cells |
Static CellTemplateProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CellTemplate',
null,
null
)
|
CellTemplate dependency property |
Private _minWidth |
Type : number
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:146
|
Backing field for |
Public ActualWidth |
Type : number
|
Default value : 0
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:197
|
Gets the current width of the column in pixels. |
Public CalculatedWidth |
Type : string
|
Default value : '0'
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:155
|
Resulting width after autosize calculations |
Public CanUserReorder |
Type : boolean
|
Decorators :
@Dependency(DataGridColumnModel.CanUserReorderProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:225
|
Indicates whether the user can change the column display position by dragging the column header. |
Static CanUserReorderProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CanUserReorder',
true,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:54
|
CanUserReorder dependency property |
Public CanUserResize |
Type : boolean
|
Decorators :
@Dependency(DataGridColumnModel.CanUserResizeProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:206
|
Indicates whether the user can adjust the column width using the mouse. |
Static CanUserResizeProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CanUserResize',
true,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:41
|
CanUserResize dependency property |
Public CanUserSort |
Type : boolean
|
Decorators :
@Dependency(DataGridColumnModel.CanUserSortProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:234
|
Indicates whether the user can sort the column by clicking the column header. |
Static CanUserSortProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'CanUserSort',
true,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:67
|
CanUserSort dependency property |
Public Header |
Type : any
|
Decorators :
@Dependency(DataGridColumnModel.HeaderProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:164
|
Gets or sets the content of the column header. |
Static HeaderProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Header',
null,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:80
|
Header dependency property |
Public HeaderStyle |
Type : RuntimeStyleInfo
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:172
|
Gets or sets the HeaderStyle |
Public isReadOnly |
Type : boolean
|
Decorators :
@Dependency(DataGridColumnModel.isReadOnlyProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:216
|
Boolean property that allows the edition mode |
Static isReadOnlyProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'isReadOnly',
false,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:94
|
isReadOnly dependency property |
Public MaxWidth |
Type : any
|
Decorators :
@Dependency(DataGridColumnModel.MaxWidthProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:189
|
MaxWidthProperty |
Static MaxWidthProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'MaxWidth',
null,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:120
|
MaxWidthProperty |
Public ParentGrid |
Type : DataGridModel
|
Default value : null
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:261
|
Parent DataGrid model |
Public SortMemberPath |
Type : string
|
Decorators :
@Dependency(DataGridColumnModel.SortMemberPathProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:243
|
Indicates the member to sort by. |
Static SortMemberPathProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'SortMemberPath',
null,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:107
|
SortMemberPath dependency property |
Public Visibility |
Type : boolean
|
Decorators :
@Dependency(DataGridColumnModel.VisibilityProperty)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:252
|
Indicates a column visibility mode. |
Static VisibilityProperty |
Type : DependencyProperty
|
Default value : new DependencyProperty(
'Visibility',
true,
null
)
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:133
|
VisibilityProperty |
Public Width |
Type : DataGridLengthModel
|
Inherited from
DataGridColumnModel
|
Defined in
DataGridColumnModel:180
|
Gets or sets the column width or an automatic sizing mode. |
Protected bindingExpressions |
Default value : new SimpleDictionary<
string,
BindingExpression
>()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:65
|
Public BindingValidationError |
Default value : new SubscriptionEvent<
(sender: any, e: BindingValidationErrorEventArgs) => void
>()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:78
|
Event for validation errors |
Public change |
Type : SubscriptionEvent<void>
|
Default value : new SubscriptionEvent()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:61
|
Infrastructure event for notifying event changes |
Public Dispatcher |
Type : Dispatcher
|
Default value : Dispatcher.GetDispatcher()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:55
|
isEnableSetPropertiesRegistry |
Type : boolean
|
Default value : true
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:125
|
Flag which indicates if the dependency property set mechanism is enable |
Public IsInitializingBindings |
Type : boolean
|
Default value : false
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:178
|
Property to determine if bindings are being initialized |
previousValidationMessage |
Type : string
|
Default value : ''
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:70
|
Protected properties |
Type : object
|
Default value : {}
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:64
|
Private setPropertiesRegistry |
Type : Map<string | boolean>
|
Default value : new Map()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:116
|
Registry with dependencies properties which has been set |
validationerr |
Default value : false
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:69
|
validationMessagesStack |
Type : Array<>
|
Default value : []
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:106
|
Keeps a queue of validation messages registered on the current Dependency Object |
Public getApplicationResource | ||||||
getApplicationResource(resourceKey: string)
|
||||||
Gets an application resource
Parameters :
Returns :
any
{*} |
Public getResourceByKey | ||||||
getResourceByKey(resourceKey: string)
|
||||||
Gets an application resource
Parameters :
Returns :
any
{*} |
Private addRelatedSubscriptionIfRequired | ||||||||||||
addRelatedSubscriptionIfRequired(event: SubscriptionEvent<any>, theHandler: any, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:502
|
||||||||||||
Parameters :
Returns :
void
|
Private addSubscriptionForTwoWayBindings | ||||||||||||
addSubscriptionForTwoWayBindings(dependencyProperty: DependencyProperty, binding: Binding, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:383
|
||||||||||||
Parameters :
Returns :
void
|
addsValidationMessage | |||||||||
addsValidationMessage(propKey: Binding | string, message: string)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:135
|
|||||||||
Adds a new validation message associated to a binding or a property name
Parameters :
Returns :
void
|
Private beginSubscribeToMultiPropertyPathChanges | |||||||||||||||
beginSubscribeToMultiPropertyPathChanges(context: any, binding: Binding, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:542
|
|||||||||||||||
Parameters :
Returns :
void
|
Private checkForSubscriptoinToDataErrorInfo | |||||||||||||||
checkForSubscriptoinToDataErrorInfo(currentContext: any, binding: Binding, propertyToSubscribe: string, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:716
|
|||||||||||||||
Parameters :
Returns :
void
|
Public clearValue | ||||||
clearValue(property: DependencyProperty)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:212
|
||||||
Clears the dependency property value
Parameters :
Returns :
void
|
Equals | ||||||
Equals(obj: any)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:201
|
||||||
Compares this dependency object agains another object.
Parameters :
Returns :
boolean
{boolean} |
GetChild | ||||||
GetChild(idx: number)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:928
|
||||||
Gets the child element at the index position
Parameters :
Returns :
DependencyObject
{DependencyObject} |
GetChildrenCount |
GetChildrenCount()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:916
|
Method o know the amount of children the parent has
Returns :
number
{number} |
GetHashCode |
GetHashCode()
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:187
|
Gets a hash code for this dependency object.
Returns :
number
{number} |
Public getValue | ||||||
getValue(property: DependencyProperty)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:226
|
||||||
Gets the value of a dependency property
Parameters :
Returns :
any
|
Private handleErrorsOnContext | |||||||||
handleErrorsOnContext(errorCtxt: INotifyDataErrorInfo, args: DataErrorsChangedEventArgs)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:777
|
|||||||||
Check and register possible errors in an error context
Parameters :
Returns :
void
|
Public IsPropertySet | ||||||
IsPropertySet(propertyName: string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:376
|
||||||
Indicates if the property has been already set.
Parameters :
Returns :
any
|
Private performDataErrorValidationIfRequired |
performDataErrorValidationIfRequired(binding: Binding, theBindingContext: any)
|
Inherited from
DependencyObject
|
Defined in
DependencyObject:481
|
Performs validation on model if the model implementes IDataErrorINfo
Returns :
void
|
Private performRemoveValidationIfInValidationError | ||||||
performRemoveValidationIfInValidationError(binding: Binding)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:461
|
||||||
Performs the remove validation if the InValidationError is true
Parameters :
Returns :
void
|
Public performTargetObjectBindingUpdate | |||||||||
performTargetObjectBindingUpdate(dependencyProperty: DependencyProperty, binding: Binding)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:429
|
|||||||||
Updates the target object value associated to the binding.
Parameters :
Returns :
void
|
Private preprocessValue | |||||||||
preprocessValue(property: DependencyProperty, value: any)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:889
|
|||||||||
Preprocess value to be set to dependency property
Parameters :
Returns :
any
|
Private recreateSubscriptionsForMultiPropertyBindingPath | ||||||||||||||||||||||||
recreateSubscriptionsForMultiPropertyBindingPath(currentContext: any, outerContext: any, properties: string[], propertyIndex: number, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression, subscriptionsForCurrentBindingPath: Array<>)
|
||||||||||||||||||||||||
Inherited from
DependencyObject
|
||||||||||||||||||||||||
Defined in
DependencyObject:682
|
||||||||||||||||||||||||
Parameters :
Returns :
void
|
Private registerSetPropertyIfRequired | ||||||
registerSetPropertyIfRequired(name: string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:903
|
||||||
Register set property if required
Parameters :
Returns :
void
|
Private removeSubscriptionsForMultiPropertyBindingPath | |||||||||
removeSubscriptionsForMultiPropertyBindingPath(subscriptionsForCurrentBindingPath: [], propertyIndex: number)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:663
|
|||||||||
Parameters :
Returns :
void
|
removeValidationMessage | ||||||
removeValidationMessage(propKey: Binding | string)
|
||||||
Inherited from
DependencyObject
|
||||||
Defined in
DependencyObject:158
|
||||||
Removes a validation message associated to a binding or a property name
Parameters :
Returns :
void
|
SetBinding | ||||||||||||
SetBinding(dependencyProperty: DependencyProperty, binding: Binding)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:317
|
||||||||||||
Sets a binding to the specified property at runtime
Parameters :
Returns :
void
|
Public setValue | |||||||||
setValue(property: DependencyProperty, value: any)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:249
|
|||||||||
Sets the value for a dependency property
Parameters :
Returns :
void
|
Public setValueForScopedRegion | ||||||||||||
setValueForScopedRegion(property: DependencyProperty, value: any, scopedRegionManager: IRegionManager)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:282
|
||||||||||||
Sets the value for a dependency property. This is a workaround to support Scoped Region Managers. A research is required to find out the way to get the application region Manager when scoped region managers are used (when creating the DelayedRegionBehavior, the correct scoped region manager must be passed as an argument).
Parameters :
Returns :
void
|
Protected shouldPreventDefaultSourceUpdate | |||||||||
shouldPreventDefaultSourceUpdate(dependencyProperty: DependencyProperty, binding: BindingExpression)
|
|||||||||
Inherited from
DependencyObject
|
|||||||||
Defined in
DependencyObject:870
|
|||||||||
Parameters :
Returns :
boolean
|
Private subscribeToBindingPathChanges | |||||||||||||||
subscribeToBindingPathChanges(context: any, binding: Binding, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression)
|
|||||||||||||||
Inherited from
DependencyObject
|
|||||||||||||||
Defined in
DependencyObject:512
|
|||||||||||||||
Parameters :
Returns :
void
|
Private subscribeToErrorsChangedInModel | ||||||||||||
subscribeToErrorsChangedInModel(errorCtxt: INotifyDataErrorInfo, propertyToSubscribe: string, bindingExpression: BindingExpression)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:748
|
||||||||||||
Parameters :
Returns :
void
|
Private subscribeToPropertyChanges | ||||||||||||||||||||||||
subscribeToPropertyChanges(currentContext: any, outerContext: any, properties: string[], propertyIndex: number, dependencyProperty: DependencyProperty, bindingExpression: BindingExpression, subscriptionsForCurrentBindingPath: Array<>)
|
||||||||||||||||||||||||
Inherited from
DependencyObject
|
||||||||||||||||||||||||
Defined in
DependencyObject:586
|
||||||||||||||||||||||||
Parameters :
Returns :
void
|
Private updateSourceOfBinding | ||||||||||||
updateSourceOfBinding(binding: Binding, outerContext: any, dependencyProperty: DependencyProperty)
|
||||||||||||
Inherited from
DependencyObject
|
||||||||||||
Defined in
DependencyObject:811
|
||||||||||||
Updates the source of a binding
Parameters :
Returns :
void
|
import { DependencyProperty } from '../../basecomponentmodel/DependencyProperty';
import { Dependency } from '../../basecomponentmodel/Dependency';
import { DataGridColumnModel } from './DataGridColumnModel';
import { DataTemplate } from './DataTemplate';
/**
* Model class to represent DataGridTemplateColumn component
*
* @export
* @class DataGridTemplateColumnModel
* @extends {DataGridColumnModel}
* @wType System.Windows.Controls.DataGridTemplateColumn
*/
export class DataGridTemplateColumnModel extends DataGridColumnModel {
/**
* CellEditingTemplate dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridTemplateColumnModel
* @wIgnore
*/
static CellEditingTemplateProperty: DependencyProperty =
new DependencyProperty('CellEditingTemplate', null, null);
/**
* CellTemplate dependency property
*
* @static
* @type {DependencyProperty}
* @memberof DataGridTemplateColumnModel
* @wIgnore
*/
static CellTemplateProperty: DependencyProperty = new DependencyProperty(
'CellTemplate',
null,
null
);
/**
* Template for the edit mode of the cells
*
* @type {DataTemplate}
* @memberof DataGridTemplateColumnModel
*/
@Dependency(DataGridTemplateColumnModel.CellEditingTemplateProperty)
public CellEditingTemplate: DataTemplate;
/**
* Termplate for the non edit mode of the cells
*
* @type {DataTemplate}
* @memberof DataGridTemplateColumnModel
*/
@Dependency(DataGridTemplateColumnModel.CellTemplateProperty)
public CellTemplate: DataTemplate;
/**
* Gets an application resource
*
* @param {string} resourceKey
* @return {*} {*}
* @memberof DataGridTemplateColumnModel
*/
public getApplicationResource(resourceKey: string): any {
if (this.ParentGrid) {
return this.ParentGrid.getApplicationResource(resourceKey);
}
return null;
}
/**
* Gets an application resource
*
* @param {string} resourceKey
* @return {*} {*}
* @memberof DataGridTemplateColumnModel
*/
public getResourceByKey(resourceKey: string): any {
return this.getApplicationResource(resourceKey);
}
}