The provided code attaches a mousedown event handler to the "Add Folder" button, which does the following:
- obtains a reference to the FileBrowser wrapper element
- finds the search textbox and clears its value
- obtains a reference to the ListView widget inside the FileBrowser and removes its dataSource's filtering settings - this will allow the newly added folder to be displayed for renaming
If the code does not work on your side, then you the event handler is probably not attached correctly. Please refer to the forum thread link in my previous reply, which shows how to use a click handler on the "Insert file" (.k-insertFile
) or "Insert image" (.k-insertImage
) buttons and use any subsequent code in setTimeout.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI