Hi Jialing,
Greetings from Syncfusion support.
We have validated your reported query in FileManager component. Please find the answer for your queries.
Query 1: Search a file by file name from all the directories instead of search within the current path
By default, FileManager search operation will be performed for all of its child and sub-child directories based on file name. Please share us clear details on the term “search a file by file name from all the directories instead of search within the current path” mentioned in your update. Whether you want to perform search for parent directories as well? This detail would help us to serve you better.
Query 2: Avoid making the second read request
You can use the beforeSend event to check whether the data is null. By setting args.cancel as true, you can avoid read request sent to sever in client side.
Please check the below code snippet.
|
beforeSend(args: BeforeSendEventArgs) {
if (args.ajaxSettings.data == null) {
args.cancel = true;
}
} |
Kindly check this in your end. If we misunderstood your query, please share more details regarding your requirement in FileManager to assist you promptly.
Please, let us know if you need any further assistance.
Regards,
Indhumathy L