<TreeViewComponent
fields={{
id: 'Id',
parentID: 'ParentID',
text: 'Text',
hasChildren: 'HasChildren',
dataSource: this._pcsDataRef.getTreeViewDM(),
query: new Query().where('ParentID', 'equal', null).sortBy('Text'),
child: {
dataSource: this._pcsDataRef.getTreeViewDM(),
id: 'Id',
parentID: 'ParentID',
text: 'Text',
hasChildren: 'HasChildren',
query: new Query().select(['Id', 'ParentID', 'Text', 'HasChildren', 'Code', 'CodeSet']),
}
}}
showCheckBox={true}
autoCheck={false}
checkedNodes={this.state.checkedNodes}
nodeChecked={this._nodeChecked.bind(this)}
drawNode={this._drawNode}
ref={t => this._treeViewRef = t}
dataBound={(evt:DataBoundEventArgs)=>{
console.info(`${this._logName}::_dataBound`);
console.info(evt);
console.info(this._treeViewRef.getAllCheckedNodes());
}}
dataSourceChanged={(evt:DataSourceChangedEventArgs)=>{
console.info(`${this._logName}::_dataSourceChanged`);
console.info(evt);
}}
/>
this.state.checkedNodes = ["MME~500","ICD-10~CHAP13","MME~200","MME~200.1","ICD-10~M32","ATC~L04AD","MME~600"];
This array lines up with what I get when I call getAllCheckedNodes() after manually checking each of them in the list.
Any ideas on how I can get my pre-checked nodes loaded?