예제 #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();
            });
        }
예제 #2
0
파일: Ajax.cs 프로젝트: fjgandrade/sharpkit
        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
                });
            }
        }
예제 #3
0
        private void showView(jQuery oldFragment, jQuery newFragment )
        {
            if (oldFragment != null) {
                oldFragment.hide();
            }

            if (newFragment != null) {
                newFragment.show();
            }
        }