This is a migrated thread and some comments may be shown as answers.

RadFileExplorer - client-side mew fetures request

1 Answer 35 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Nov 2011, 11:31 AM
Hi
I think will be great to have some new events related to toolbar buttons: OnDleteClicking(ed),  OnUploadClicked, etc.
These will provide an easier way to interact with control.
Hope this helps in some way.

Dan

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 14 Nov 2011, 06:17 PM
Hi Dan,

Thank you for your feature request. I have logged it into our database and we will consider such implementations.

For the time being, you can use the following approach to handle the ClientClicking / ClientCliecked events of the RadFileExplorer toolbar's Upload and Delete buttons using the following approach:
<telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" OnClientLoad="OnClientLoad">
    <Configuration ViewPaths="~/ROOT" DeletePaths="~/ROOT" UploadPaths="~/ROOT" />
</telerik:RadFileExplorer>
 
<script type="text/javascript">
    function OnClientLoad(explorer, args)
    {
        var toolbar = explorer.get_toolbar();
 
        toolbar.add_buttonClicking(function (sender, arguments)
        {
            if (arguments.get_item().get_value() == "Upload") {
                alert("Upload button Clicking");
            }
        });
 
        toolbar.add_buttonClicked(function (sender, arguments)
        {
            if (arguments.get_item().get_value() == "Upload") {
                alert("Upload button Clicked");
            }
        });
 
    }
</script>               

You can use similar approach for the Tree's and Grid's context menu built-in items.

Please review the following help article for more information on the subject:
Adding a custom button to the toolbar and an item to the tree context menu

Regards,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
FileExplorer
Asked by
Michael
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or