Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 13, 2012 @ 14:36
    Marc-Anthony Taylor
    0

    What is the syntax for opening a modal popup in the back office?

    I am trying to open a modal window through a custom context menu item, at the moment I have this and it stops rendering the trees when I run it:

     

    public string JsFunctionName
                {
                    get { return "openModal('open_multiLang.aspx', 'Copy all content?', 540, 620);"; }
                    // + string.Format("{0}.actionNew()", ClientTools.Scripts.GetAppActions) openModalWindow('open_multiLang.ascx', 'Copy all content?', 540, 620);
    
                }
  • Marc-Anthony Taylor 55 posts 68 karma points
    Dec 13, 2012 @ 15:21
    Marc-Anthony Taylor
    0

    Sorted. I should have been calling it as a function:

    public string JsFunctionName

                {

                    get { return "func()"; }

                }

     

                public string JsSource

                {  

                    get

                    {

                        return "function func(){UmbClientMgr.openModalWindow('../open_multiLang.aspx', 'Copy all content?', 540, 620, 250, 250);};";

          ; }

                    }

                }

Please Sign in or register to post replies

Write your reply to:

Draft