Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. <div style="position: relative; overflow: auto; width: 100%; height: 200px;" class="dataTables_scrollBody">
  2. <table style="width: 100%;" id="busqueda_cliente" class="display nowrap dataTable no-footer" cellspacing="0" width="100">
  3. <thead>
  4. <tr>
  5. <th>Codigo</th>
  6. <th>Nombre</th>
  7. <th>Estado</th>
  8. </tr>
  9. </thead>
  10. </table>
  11. </div>
  12. </form>
  13. </div>
  14. @* Load datatable css *@
  15. <link href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css" rel="stylesheet" />
  16. @* Load datatable js *@
  17. @section Scripts{
  18. <script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"></script>
  19. <script>
  20. $(document).ready(function () {
  21. $('#busqueda_cliente').DataTable({
  22. "bSort": false,
  23. "ajax": {
  24. "url": "/venmancategoria/Todos",
  25. "type": "GET",
  26. "datatype": "json"
  27. },
  28. "columns": [
  29. { "data": "Codigo" },
  30. { "data": "Nombre" },
  31. { "data": "Estado" }
  32. ],
  33. filter: false,
  34. "paging": false,
  35. "ordering": false,
  36. "info": false,
  37. language: {
  38. paginate: {
  39. first: "Primero",
  40. previous: "Anterior",
  41. next: "Siguiente",
  42. last: "Ultimo"
  43. }
  44. }
  45. });
  46. });
  47. </script>
  48. }
  49. <div class="modal-footer">
  50. <button type="button" class="btn btn-primary">Seleccionar</button>
  51. <button type="button" class="btn btn-primary" data-dismiss="modal">Cerrar</button>
  52. </div>
  53. </div>
  54. </div>
  55. </div> <!-- Modal Escenario-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement