[CLOSED] Load window content from a controller method

Page 3 of 3 FirstFirst 123
  1. #21
    Instead of having the URL defined in the Window like:
    @(X.Window()
            .ID("Window1")
            .Title("Window")
            .Hidden(true)
            .Height(100)
            .Loader(X.ComponentLoader()
                .AutoLoad(false)
                .Mode(LoadMode.Html)
                .Scripts(true)
                .Url(Url.Action("WindowContent"))
                .Params(new
                {
                    containerId = "Window1"
                })
            )
        )
    I would like to pass in the URL parameter to the:
    <script>
            var openWindow = function(recordId) {
                App.Window1.removeAll();
                App.Window1.show();
                App.Window1.load({
                    params: {
                        recordId: recordId
                    }
                });
            };
        </script>
    How do I set the URL for the App.Window1 please?

    Thank you
  2. #22
    It is possible to pass an URL to the load method.
    App.Window1.load({
        url: "some URL",
        params: {
            recordId: recordId
        }
    });
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Replies: 8
    Last Post: May 12, 2013, 6:19 PM
  2. [CLOSED] [RAZOR] How to access ext.net controls from controller method
    By gets_gui in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Sep 13, 2012, 8:12 AM
  3. Load Panel from MVC Controller
    By stu in forum 2.x Help
    Replies: 1
    Last Post: Jun 18, 2012, 11:26 PM
  4. Replies: 1
    Last Post: Apr 09, 2012, 1:07 PM
  5. Load menu panel from controller
    By wadhah in forum 1.x Help
    Replies: 1
    Last Post: Oct 28, 2011, 1:48 PM

Tags for this Thread

Posting Permissions