2
I am creating a modal and inside I will put a table with some information, however, the content of the modal is not being stylizable.
I already use the same table in other views and works normally this way, only in modal that not.
Script import occurs correctly as you can see in the following code:
<script>
function ReloadModalInfo(componenteName) {
$.post('@Url.Action("GridView", "PopupPadrao")', { token: $('#' + componenteName + '_token').val() }, function (data) {
console.log(data)
$('#abrirModal').click()
})
}
</script>
@section Styles {
<link rel="stylesheet" href="~/vendor/jquery-bootgrid/dist/jquery.bootgrid.css">
}
@section Scripts {
<script src="@Scripts.Url("~/Vendor/jquery-bootgrid/dist/jquery.bootgrid.js")"></script>
<script src="@Scripts.Url("~/Vendor/jquery-bootgrid/dist/jquery.bootgrid.fa.js")"></script>
}
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Cabeçalho Modal</h4>
</div>
<div class="modal-body" id="modalContent">
<table class="table table-borderless" id="bootgrid-command">
<thead>
<tr>
<th data-column-id="commands" data-formatter="commands" data-sortable="false">
<div class="text-right">@Resources.Resources.Acoes</div>
</th>
<th data-column-id="id" data-type="numeric">@Resources.Resources.Codigo</th>
<th data-column-id="nome">@Resources.Resources.Tag</th>
<th data-column-id="login">@Resources.Resources.Descricao</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>qwdqwdqwd</td>
<td>qwdqwdqwdqwdqw</td>
<td>qwdqwdqwdqw</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Fechar</button>
</div>
</div>
</div>
</div>
<button type="button" class="btn btn-info btn-lg" style="visibility: hidden" id="abrirModal" data-toggle="modal" data-target="#myModal">Abrir janela Modal</button>
How it should look:
Imported jquery-ui.css ?
– Ronaldo Araújo Alves
@Ronaldoaraújoalves Yes friend, if I put the grid out of the modal it works perfectly.
– Victor Laio