I have a datatable in mvc
- $(document).ready(function () {
- $("#tblEmployee").dataTable({
- ajax: {
- type: "get",
- url: "/Employee/GetAllEmployee",
- dataType: "json",
- dataSrc: ""
- },
- columns: [{ 'data': 'Id' },
- { 'data': 'Name' },
- { 'data': 'Salary' },
- {
- 'data': 'Id', render: function (data, type, row) {
- return '';
- }
- },
- {
- 'data': 'Id', render: function (data, type, row) {
- return '';
- }
- }
- ]
- });
- });
- $(".btnEdit").Click(function(){
- alert("hello");
- });
Sachin SinghPosted Dec 1, 2020, 4:45 AM