Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="position: relative; overflow: auto; width: 100%; height: 200px;" class="dataTables_scrollBody">
- <table style="width: 100%;" id="busqueda_cliente" class="display nowrap dataTable no-footer" cellspacing="0" width="100">
- <thead>
- <tr>
- <th>Codigo</th>
- <th>Nombre</th>
- <th>Estado</th>
- </tr>
- </thead>
- </table>
- </div>
- </form>
- </div>
- @* Load datatable css *@
- <link href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" rel="stylesheet" />
- @* Load datatable js *@
- @section Scripts{
- <script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
- <script>
- $(document).ready(function () {
- $('#busqueda_cliente').DataTable({
- "bSort": false,
- "ajax": {
- "url": "/venmancategoria/Todos",
- "type": "GET",
- "datatype": "json"
- },
- "columns": [
- { "data": "Codigo" },
- { "data": "Nombre" },
- { "data": "Estado" }
- ],
- filter: false,
- "paging": false,
- "ordering": false,
- "info": false,
- language: {
- paginate: {
- first: "Primero",
- previous: "Anterior",
- next: "Siguiente",
- last: "Ultimo"
- }
- }
- });
- });
- </script>
- }
- <div class="modal-footer">
- <button type="button" class="btn btn-primary">Seleccionar</button>
- <button type="button" class="btn btn-primary" data-dismiss="modal">Cerrar</button>
- </div>
- </div>
- </div>
- </div> <!-- Modal Escenario-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement