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

Call Java function

1 Answer 51 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Herman
Top achievements
Rank 1
Herman asked on 20 Jul 2011, 08:04 AM
Hi

I use the following java function to call a sharepoint ModalDialog popup :

    function OpenDialog() {

        var options = SP.UI.$create_DialogOptions();
       
        options.url = 'http:/...Catalogue.aspx'
        options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);
        options.width = 700;
        options.height = 400;
        SP.UI.ModalDialog.showModalDialog(options);
    }
I call the function with this:
"<a id="newc" runat="server" onclick="newc_Click" href="Javascript:OpenDialog();">New Catalogue</a>

 

 

 

 

I want to use my RibbonBar Buttons to call this functions

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 21 Jul 2011, 02:37 PM
Hi Herman,

You can hook to the ButtonClicked client-side event of RadRibbonBar and call your function from there. Please see the linked help topic for more info and an example.

I hope this helps.

Best wishes,
Simon
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
RibbonBar
Asked by
Herman
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or