Welcome to the jQuery feedback portal. We’re happy you’re here! If you have feedback on how to improve the jQuery, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Having added a custom tool bar item to the ejFileExplorer control, if I then call fileExplorerObj.disableToolbarItem('MyCustomTool') the call will fail with error [TypeError: i[f].toLowerCase is not a function]


As a workaround I can add a toLowerCase() function to the custom item definition which returns the id of the item. e.g. 

{
            name: "Setting",
            id: "Setting",
            tooltip: "Setting",
            css: "e-fileExplorer-toolbar-icon Setting",
            action: function () {
                doSomething();
            },
           // Remove the following line to see the bug in action
           toLowerCase(){
                 return 'Setting'; // NOT lower case !!
            }

The behaviour can be see here - http://jsplayground.syncfusion.com/s4hsvakn

Remove the toLowerCase() function from the item definition to see the error.


Gary