skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DialogViewModel

A base class for the various pivot field list editing dialogs view models.

Inheritance
System.Object
ViewModelBase
DialogViewModel
PivotSettingsViewModel
Inherited Members
ViewModelBase.VerifyPropertyName(String)
ViewModelBase.InvokeOnUIThread(Action)
ViewModelBase.Dispose()
ViewModelBase.RaisePropertyChanged(String)
ViewModelBase.OnPropertyChanged(String)
ViewModelBase.OnPropertyChanged<T>(Expression<Func<T>>)
ViewModelBase.PropertyChanged
Namespace: Telerik.Windows.Controls.FieldList.Editing
Assembly: Telerik.Windows.Controls.PivotFieldList.dll

Syntax

public abstract class DialogViewModel : ViewModelBase, INotifyPropertyChanged, IDisposable, IDialogViewModel

Properties

Cancel

Gets the Cancel System.Windows.Input.ICommand for this dialog.

Declaration
public ICommand Cancel { get; }
Property Value
System.Windows.Input.ICommand

Implements
IDialogViewModel.Cancel

IsAvailable

Gets a value that indicates if the editing is possible.

Declaration
public bool IsAvailable { get; }
Property Value
System.Boolean

IsWorking

Gets a value that indicates if the dialog is waiting on results.

Declaration
public bool IsWorking { get; protected set; }
Property Value
System.Boolean

Ok

Gets the Ok System.Windows.Input.ICommand for this dialog.

Declaration
public ICommand Ok { get; }
Property Value
System.Windows.Input.ICommand

Implements
IDialogViewModel.Ok

Refresh

Gets the Refresh System.Windows.Input.ICommand for this dialog.

Declaration
public ICommand Refresh { get; }
Property Value
System.Windows.Input.ICommand

RequiresRefresh

Gets a value that indicates if the editing requires recent IPivotResults data.

Declaration
public bool RequiresRefresh { get; protected set; }
Property Value
System.Boolean

Methods

AttachToServices()

Attach to the new services.

Declaration
protected virtual void AttachToServices()

CanExecuteOk(Object)

Checks if the Ok System.Windows.Input.ICommand can be executed.

Declaration
protected virtual bool CanExecuteOk(object parameter)
Parameters
System.Object parameter

The parameters.

Returns
System.Boolean

True if System.Windows.Input.ICommand can be executed. Otherwise - false.

DetachFromServices()

Detach the previous services.

Declaration
protected virtual void DetachFromServices()

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

true to release both managed and unmanaged resources. false to release only unmanaged resources.

Overrides
ViewModelBase.Dispose(Boolean)

ExecuteOk(Object)

Handles the Ok execution.

Declaration
protected virtual void ExecuteOk(object parameter)
Parameters
System.Object parameter

ExecuteRefresh(Object)

Handles the Refresh execution.

Declaration
protected virtual void ExecuteRefresh(object parameter)
Parameters
System.Object parameter

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 virtual 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.

Events

Canceled

Invoked when the user canceled any changes done through this dialog.

Declaration
public event EventHandler Canceled
Event Type
System.EventHandler

Implements
IDialogViewModel.Canceled

Completed

Invoked when the user completed and confirmed the changes on this dialog.

Declaration
public event EventHandler Completed
Event Type
System.EventHandler

Implements
IDialogViewModel.Completed

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.