-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Description
<TreeView
items={this.treeItems}
defaultExpanded={false}
selectionMode={TreeViewSelectionMode.Multiple}
selectChildrenIfParentSelected={true}
showCheckboxes={true}
treeItemActionsDisplayMode={TreeItemActionsDisplayMode.ContextualMenu}
defaultSelectedKeys={this.state.pkey} ------This State value
expandToSelected={true}
defaultExpandedChildren={true}
onSelect={this.onTreeItemSelect}
onExpandCollapse={this.onTreeItemExpandCollapse}
onRenderItem={this.renderCustomTreeItem} />
I'm trying to change the state in componentdidmount i.e this.setState ({ pkey: ['6'] }); but doesnot changing the value,
please provide me the solution asap.