Class ValueCalculationsViewModel
A view-model that encapsulates the editing of a TotalFormat for a Value's Description.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.FieldList.Editing
Assembly: Telerik.Windows.Controls.PivotFieldList.dll
Syntax
public sealed class ValueCalculationsViewModel : PivotResultsViewModel, INotifyPropertyChanged, IDisposable, IDialogViewModel
Properties
AvailableCalculationOptions
Gets a list of CalculationOptions available for selection.
Declaration
public IList<CalculationOption> AvailableCalculationOptions { get; }
Property Value
System.Collections.Generic.IList<CalculationOption>
|
AvailableGroupDescriptions
Gets a list of the Label items available for selection in SelectedGroupDescription.
Declaration
public IList<IGroupDescription> AvailableGroupDescriptions { get; }
Property Value
System.Collections.Generic.IList<IGroupDescription>
|
AvailableGroupNames
Gets a lists of System.Object items available for selection in SelectedGroupName.
Declaration
public IList<object> AvailableGroupNames { get; }
Property Value
System.Collections.Generic.IList<System.Object>
|
RequiresGroupDescription
Gets a value that indicates if the SelectedCalculationOption requires selection of base label.
Declaration
public bool RequiresGroupDescription { get; }
Property Value
System.Boolean
|
RequiresGroupName
Gets a value that indicates if the SelectedCalculationOption requires selection of base item.
Declaration
public bool RequiresGroupName { get; }
Property Value
System.Boolean
|
SelectedCalculationOption
Gets or sets the selected CalculationOption.
Declaration
public CalculationOption SelectedCalculationOption { get; set; }
Property Value
CalculationOption
|
SelectedGroupDescription
Gets or sets the selected Label used in the setup of some group filters.
Declaration
public IGroupDescription SelectedGroupDescription { get; set; }
Property Value
IGroupDescription
|
SelectedGroupName
Gets or sets the available base item used in the setup of some group filters.
Declaration
public object SelectedGroupName { get; set; }
Property Value
System.Object
|
Methods
AttachToServices()
Attach to the new services.
Declaration
protected override void AttachToServices()
Overrides
CanExecuteOk(Object)
Checks if the Ok System.Windows.Input.ICommand can be executed.
Declaration
protected override bool CanExecuteOk(object parameter)
Parameters
System.Object
parameter
The parameters. |
Returns
System.Boolean
True if System.Windows.Input.ICommand can be executed. Otherwise - false. |
Overrides
ExecuteOk(Object)
Handles the Ok execution.
Declaration
protected override void ExecuteOk(object parameter)
Parameters
System.Object
parameter
|
Overrides
OnDataProviderResultsChanged()
Declaration
protected override void OnDataProviderResultsChanged()
Overrides
OnPivotSettingsChanged()
Handles the PivotSettings changed.
Declaration
protected override void OnPivotSettingsChanged()
Overrides
RetrieveServices(IServiceProvider)
Retrieve the services from the serviceProvider
. You could use the Telerik.Windows.Controls.FieldList.Editing.DialogViewModel.Context if you do not want the IsAvailable to track your requests.
Declaration
protected override void RetrieveServices(IServiceProvider serviceProvider)
Parameters
System.IServiceProvider
serviceProvider
The System.IServiceProvider to retrieve services from. This is a slim wrapper around the Telerik.Windows.Controls.FieldList.Editing.DialogViewModel.Context that would keep track of if all requested services were available. If a requested service was unavailable the DialogViewModel's IsAvailable would be set to false. |