I am creating my dropdown tree list and have records in my data which is mapped to datasource
dropDownTreeObject = new ej.dropdowns.DropDownTree({
fields: { dataSource: data, value: 'Id', text: 'Name', child: 'ChildItems' },
});
dropDownTreeObject .appendTo('#ddtreeelement');
dropDownTreeObject .value = 1;
But when i am trying to set value
dropDownTreeObject.value = 1;
ddtree is not setting the value for 1 and my data list has a record with Id 1.
Do I need to map value in any other way for setting in dropdown tree list?