Exemplo n.º 1
0
        static void OnReady()
        {
            var win = new jQuery("#window");
            var undo = new jQuery("#undo");

            undo.bind("click", e =>
            {
                win.data("kendoWindow").As<Window>().open();
                undo.hide();
            });

            if (win.data("kendoWindow") == null)
            {
                win.kendoWindow(new WindowConfiguration
                {
                    width = "500px",
                    actions = new JsArray { "Custom", "Minimize", "Maximize", "Close" },
                    title = "About Josef Hoffmann",
                    close = () => undo.show().As<Window>()

                });
            }
            win.data("kendoWindow").As<Window>().wrapper.find(".k-i-custom").click(e =>
            {
                HtmlContext.alert("Custom action button clicked");
                e.preventDefault();
            });
        }
Exemplo n.º 2
0
        static void OnReady()
        {
            win = new jQuery("#window");
            undo = new jQuery("#undo")
                    .bind("click", e =>
                    {
                        win.data("kendoWindow").As<Window>().open();
                        undo.hide();
                    });

            if (win.data("kendoWindow") == null)
            {
                win.kendoWindow(new WindowConfiguration
                {
                    width = "630px",
                    height = "315px",
                    title = "Rams's Ten Principles of Good Design",
                    actions = new[] { "Refresh", "Close" },
                    contentString = "../../content/web/window/ajax/ajaxContent1.html",
                    open = onOpen,
                    activate = onActivate,
                    close = onClose,
                    deactivate = onDeactivate,
                    refresh = onRefresh,
                    resize = onResize,
                    dragstart = onDragStart,
                    dragend = onDragEnd
                });
            }
        }
Exemplo n.º 3
0
        static void OnReady()
        {
            var wnd = new jQuery("#window");

            new jQuery("#open").click(e => wnd.data("kendoWindow").As<Window>().open());
            new jQuery("#close").click(e => wnd.data("kendoWindow").As<Window>().close());
            //new jQuery("#refresh").click(e => wnd.data("kendoWindow").As<Window>().refresh());
            wnd.kendoWindow(new WindowConfiguration
            {
                width = "505px",
                height = "315px",
                title = "Rams's Ten Principles of Good Design",
                actions = new[] { "Refresh", "Maximize", "Close" },
                contentString = "../../content/web/window/ajax/ajaxContent1.html"
            });
        }
Exemplo n.º 4
0
        static void OnReady()
        {
            var window = new jQuery("#window");
            var undo = new jQuery("#undo")
                    .bind("click", e =>
                    {
                        window.data("kendoWindow").As<Window>().open();

                    });
            undo.hide();
            
            JsAction onClose = () => undo.show().As<Window>();
            
            if (window.data("kendoWindow") == null)
            {
                window.kendoWindow(new WindowConfiguration
                {
                    width = "615px",
                    title = "Rams's Ten Principles of Good Design",
                    contentString = "../../content/web/window/ajax/ajaxContent.html",
                    close = onClose
                });
            }
        }