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

Programmatic .expand() of collapsible results in zero height content

$
0
0

I have some collapsible widgets that I am "routing open" by way of a view().param switch on the view's "afterShow" event.

Basically, if a user clicks a nav link I am taking them to a different collapsible in that view. This all works well, however I may have a bug or some odd behavior on my hands.

If in my onAfterShow function I call:

$("#giving-collapse").data("kendoMobileCollapsible").expand();

...But I am left with a zero height .km-collapsible-content block:

<div data-role="collapsible-content" class="km-collapsible-content km-animated" style="height: 0px; display: block;"><div>

So I have called this after calling .expand() ...

$("#giving-collapse .km-collapsible-content").css("height","auto");

Which works and shows the proper content.

Am I missing something or should this work straight away without a defined height change?


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>