Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Link Collapsible Widgets together?

$
0
0

Is it possible to link multiple collapsible div containers together in operation so that only one can be open at a time?

Right now this is how I have it operating. It works, but I'm not sure if this is the best way to accomplish such a thing.

 

onCollapsibleExpand: function(e){
        varthisID = $(this.element).attr("id");
        $(".km-collapsible").each(function(k,v){ 
            // if not clicked item and is currently visible 
            if( ($(this).attr("id") != thisID) && $(this).is(":visible") ){
                $(this).data("kendoMobileCollapsible").collapse();
            }
        });
    },

Viewing all articles
Browse latest Browse all 94857

Trending Articles