Beispiel #1
0
        static void OnReady()
        {
            var original = new jQuery("#panelbar").clone(true);
            original.find(".k-state-active").removeClass("k-state-active");

            new jQuery(".configuration input").change(e =>
                {
                    var panelBar = new jQuery("#panelbar").As<PanelBar>();
                    jQuery clone = original.clone(true);
                    panelBar.data("kendoPanelBar").collapse(new jQuery("#panelbar .k-link"));
                    panelBar.replaceWith(clone);
                    initPanelBar();
                });
            initPanelBar();

        }
Beispiel #2
0
        static void OnReady()
        {

           
            var original = new jQuery("#menu").clone(true);
            original.find(".k-state-active").removeClass("k-state-active");

            new jQuery(".configuration input").change(e =>
                {
                    jQuery menu = new jQuery("#menu");
                    jQuery clone = original.clone(true);

                    menu.data("kendoMenu").As<Menu>().close(new jQuery("#menu .k-link"));

                    menu.replaceWith(clone);

                    initMenu();
                });

            initMenu();
        }
Beispiel #3
0
        static void OnReady()
        {
            var original = new jQuery("#tabstrip").clone(true);
            original.find(".k-state-active").removeClass("k-state-active");
            new jQuery(".configuration input").change(e =>
                {
                    jQuery tabStrip = new jQuery("#tabstrip"),

                        clone = original.clone(true);
                    JsNumber selectedIndex = tabStrip.data("kendoTabStrip").As<TabStrip>().select().As<JsNumber>();
                    clone.children("ul")
                         .children("li")
                         .eq(selectedIndex)
                         .addClass("k-state-active")
                         .end();

                    tabStrip.replaceWith(clone);

                    initTabStrip();
                });

            initTabStrip();
        }