I'm trying to use the "box collapse" of the AdminLTE template (figure below), but when rendering dynamically it does not expand when clicking on '+'. I'm using the code below in a PartialView.
I tried to use the delegate function of jQuery, but I do not know which elements to select and the functions to be used to expand and close.
@foreach(variteminModel){<divclass="row">
<div class="col-md-12">
<div class="box box-default collapsed-box item-collapsed">
<div class="box-header with-border">
<h3 class="box-title">@item.Nome</h3>
<div class="box-tools pull-right">
<button type="button" class="btn btn-box-tool" data-widget="collapse">
<i class="fa fa-plus"></i>
</button>
</div>
</div>
<div class="box-body">
<p>Descrição: @item.Descricao</p>
<p>Preço: @item.Preco</p>
<p>Quantidade: @item.Quantidade</p>
</div>
</div>
</div>
</div>
}