RadFileExplorer - client-side mew fetures request

2 posts, 0 answers
  1. Dan
    Dan avatar
    70 posts
    Member since:
    Mar 2007

    Posted 13 Nov 2011 Link to this post

    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
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 14 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top