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

Open radWindow from costume fileExplorer button

3 Answers 75 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Shaza
Top achievements
Rank 1
Shaza asked on 15 Aug 2011, 10:39 AM
Hey,
I have a fiIleExpolrer with costume button, onClick of this button I need to open a radWIndow, How can I do that?

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 17 Aug 2011, 09:57 AM
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.

0
Shaza
Top achievements
Rank 1
answered on 17 Aug 2011, 10:03 AM
How can I have the access to onClick client side event of the costume button in radFileExplorer?
0
Accepted
Marin Bratanov
Telerik team
answered on 17 Aug 2011, 11:07 AM
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.

Tags
FileExplorer
Asked by
Shaza
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Shaza
Top achievements
Rank 1
Share this question
or