Disable Search Box On File Manager

Just wondering if it's possible to completely disable the search box on the file manager?

{ allowSearchOnTyping: true, filterType: ‘contains’, ignoreCase: true}

These are the only options i see for the search settings option

1 Reply 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team December 16, 2020 03:18 PM UTC

Hi Glen Elkins,  
 
Greetings from Syncfusion support. 
 
Hide the SearchBox: 
 
We suspect that your requirement is to hide the search box in FileManager component.  You can hide the searchbox by using CSS styles. 
 
Please, refer the below code snippet. 
 
.e-filemanager .e-search-wrap { 
  display: none; 
} 
 
 
Please, refer the sample link. 
 
 
Disable the SearchBox: 
 
You can disable the searchbox  by using success event of FileManager component. 
 
Please, refer the below code snippet. 
 
 <ejs-filemanager 
    id="overview" 
    [ajaxSettings]="ajaxSettings" 
    [view]="view" 
    (success)="success($event)" 
  > 
  </ejs-filemanager> 
success() { 
    if (this.flag) { 
      (document.getElementsByClassName( 
        "e-control e-textbox" 
      )[0] as any).ej2_instances[0].enabled = false; 
      this.flag = false; 
    } 
  } 
 
 
Please, refer the sample link. 
 
 
Please let us know, if you need any further assistance. 
 
Regards,  
Sowmiya.P 


Marked as answer
Loader.
Up arrow icon