Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148173 | Oct 9,2019 02:57 AM UTC | Oct 15,2019 06:17 AM UTC | ASP.NET MVC - EJ 2 | 8 |
![]() |
Tags: FileManager |
onSubmit() {
var value = this.textbox.value;
var treedata = this.filemangerInstance.navigationpaneModule.treeObj.treeData
for (var i = 0; i < treedata.length; i++) {
// Checking the folder already exist or not.
if (treedata[i].name == value) {
this.count++
}
}
if (this.count == 0) {
// Replace the path to the root path
this.filemangerInstance.path = "/";
this.filemangerInstance.dataBind();
// Create a new folder if folder doesn't exist
this.filemangerInstance.createFolder(value);
setTimeout(() => {
// Navigate the path to the newly created folder
this.filemangerInstance.path = "/" + value;
this.filemangerInstance.dataBind();
}, 500)
}
this.count = 0;
} |
<ejs-filemanager id='overview' #filemanager [ajaxSettings]='ajaxSettings' [view]='view' cssClass="myfilemanger">
</ejs-filemanager> |
.e-filemanager.myfilemanger .e-address {
display: none;
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.