How can I make the TreeDropDownField to display the currently selected item upon page load? It says "Choose..." even though a value for the field is set.
$tree = new TreeDropdownField('MyFile', 'Selected File', 'File', 'ID');
$tree->setTreeBaseID(3);
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', $tree, 'Content');
Am I missing something or is there any workaround?