Open radWindow from costume fileExplorer button

4 posts, 1 answers
  1. Shaza
    Shaza avatar
    19 posts
    Member since:
    Apr 2011

    Posted 15 Aug 2011 Link to this post

    Hey,
    I have a fiIleExpolrer with costume button, onClick of this button I need to open a radWIndow, How can I do that?
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 17 Aug 2011 Link to this post

    Hello Shaza,

    I believe that you may find the following help article useful: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html. It explains the various ways a RadWindow can be opened - a standalone one, or from a RadWindowManager. Please note that the RadWindow is a client-side object and should thus be used with JavaScript, so you should use the client-side onclick event.


    Regards,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shaza
    Shaza avatar
    19 posts
    Member since:
    Apr 2011

    Posted 17 Aug 2011 Link to this post

    How can I have the access to onClick client side event of the costume button in radFileExplorer?
  5. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 17 Aug 2011 Link to this post

    Hello Shaza,

    Please examine the following KB article on adding custom buttons: http://www.telerik.com/community/code-library/aspnet-ajax/file-explorer/how-to-add-a-custom-button-to-the-toolbar-and-hide-an-existing-one-s.aspx. Since you create the button entirely yourself you can use its Attributes collection to add the onclick handler, for example:
    propertyButton.Attributes.Add("onclick", "calledFn();");

    and you would have this JavaScript function declared on the page, of course:
    function calledFn()
    {
        alert(1);
    }


    Kind regards,
    Marin
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top