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
Datei anzeigen Open project: dsuryd/dotNetify-Nancy-demo

Public Methods

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

Protected Methods

Method Description
LoadTreeItem ( int iId ) : TreeItem

Loads a tree item from an employee record.

Private Methods

Method 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 method

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

OnUnresolvedUpdate() public method

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.
return void