File Manager refresh changes the selected item.
Refresh should not change the selected item if it is available after refresh.
If the selected item is not available after refresh, Preview pane should show No File Selected.
https://demos.telerik.com/aspnet-core/filemanager
Select Documents folder in Tree View then Excel Document in List View. Excel Document is shown in the Preview pane.
Refresh the File Manager using jQuery in Console.
$("#filemanager").getKendoFileManager().refresh()
Excel Document is not selected and Preview pane shows Documents.
Refresh changed the selected item.
Selected file does not change after refresh.
Example Windows File Explorer. Select a file in the folder and press F5 to refresh the folder.
Hi Aleksandar,
Thank you for reporting this issue.
This happens because refreshing the FileManager rebinds the inner TreeView and this clears its selection. Since the refresh() naming of the method is little ambiguous and some customers may expect it to actually reset the selection, I am changing the status of the item to Feature Request.
The optimal solution would be for the .refresh() method to allow an argument like .refresh(preserveSelection: true) which will give the control to the developer.
Regards,
Eyup
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.