Maintain Bootstrap Accordion current pane state after PostBack in ASP.Net

Last Reply on May 02, 2015 11:58 PM By Mudassar

Posted on May 02, 2015 11:37 PM

Hello Everyone..

Can anyone show me how to retain the current position of bootstrap accordion during postback..?  My html code below.. 

Thank you.. 

Link

 

<div class="bs-example">
<div class="panel-group" id="patient-accordion">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne">Patient Info</a>
            </h4>
        </div>
        <div id="collapseOne" class="panel-collapse collapse in">
            <div class="panel-body">
                *** asp.net controls ***
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">Past history</a>
            </h4>
        </div>
        <div id="collapseTwo" class="panel-collapse collapse">
            <div class="panel-body">
                *** asp.net controls ***
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree">family history</a>
            </h4>
        </div>
        <div id="collapseThree" class="panel-collapse collapse">
            <div class="panel-body">
               *** asp.net controls ***
            </div>
        </div>
    </div>
</div>

 

This question does not have replies that have been liked.