C# 클래스 ExamplesLibrary.TreeViewVM

This view model demonstrates how to do lazy-loading on a deep tree without storing anything in the view model.
상속: BaseVM
파일 보기 프로젝트 열기: dsuryd/dotNetify-Nancy-demo

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
LoadTreeItem ( int iId ) : TreeItem

Loads a tree item from an employee record.

비공개 메소드들

메소드 설명
ExpandToSelection ( TreeItem &iRoot ) : void

Expands the root tree item to the currently selected item.

GetRoot ( ) : TreeItem

Gets the root tree item.

메소드 상세

LoadTreeItem() 보호된 메소드

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

OnUnresolvedUpdate() 공개 메소드

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.
리턴 void