C# Class ExamplesLibrary.TreeViewVM

This view model demonstrates how to do lazy-loading on a deep tree without storing anything in the view model.
Inheritance: BaseVM
Afficher le fichier Open project: dsuryd/dotNetify-Nancy-demo

Méthodes publiques

Méthode Description
OnUnresolvedUpdate ( string iVMPath, string iValue ) : void

Override this method to implement custom resolver for the value update coming from the browser. VMController doesn't know how to handle a deep tree property path, so we are handling it here.

Méthodes protégées

Méthode Description
LoadTreeItem ( int iId ) : TreeItem

Loads a tree item from an employee record.

Private Methods

Méthode Description
ExpandToSelection ( TreeItem &iRoot ) : void

Expands the root tree item to the currently selected item.

GetRoot ( ) : TreeItem

Gets the root tree item.

Method Details

LoadTreeItem() protected méthode

Loads a tree item from an employee record.
protected LoadTreeItem ( int iId ) : TreeItem
iId int Identifies the record.
Résultat TreeItem

OnUnresolvedUpdate() public méthode

Override this method to implement custom resolver for the value update coming from the browser. VMController doesn't know how to handle a deep tree property path, so we are handling it here.
public OnUnresolvedUpdate ( string iVMPath, string iValue ) : void
iVMPath string View model path.
iValue string Value sent by the browser.
Résultat void