{"action":"closed","issue":{"url":"https://api.github.com/repos/yajra/laravel-datatables/issues/287","labels_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/287/labels{/name}","comments_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/287/comments","events_url":"https://api.github.com/repos/yajra/laravel-datatables/issues/287/events","html_url":"https://github.com/yajra/laravel-datatables/issues/287","id":120570954,"number":287,"title":"add column to beginning of datatable","user":{"login":"shafrazlk","id":9990397,"avatar_url":"https://avatars.githubusercontent.com/u/9990397?v=3","gravatar_id":"","url":"https://api.github.com/users/shafrazlk","html_url":"https://github.com/shafrazlk","followers_url":"https://api.github.com/users/shafrazlk/followers","following_url":"https://api.github.com/users/shafrazlk/following{/other_user}","gists_url":"https://api.github.com/users/shafrazlk/gists{/gist_id}","starred_url":"https://api.github.com/users/shafrazlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shafrazlk/subscriptions","organizations_url":"https://api.github.com/users/shafrazlk/orgs","repos_url":"https://api.github.com/users/shafrazlk/repos","events_url":"https://api.github.com/users/shafrazlk/events{/privacy}","received_events_url":"https://api.github.com/users/shafrazlk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-05T16:42:30Z","updated_at":"2015-12-07T08:49:49Z","closed_at":"2015-12-07T08:49:49Z","body":"I am trying to add an extra column to the beginning of the datatable via addColumn but no luck. Anyway if i add the column to the end of the datatable it works. Any help much appreciated.\r\n\r\ndatatable view\r\n```\r\n$('#dtGrid').DataTable({\r\n     responsive: true,\r\n     processing: true,\r\n     serverSide: true,\r\n     ajax: {\r\n        url: 'chargeback/grid'\r\n     },\r\n     columns: [\r\n                    { data: 'action', name: 'action' },\r\n                    { data: 'col_1', name: 'col_1' },\r\n                    { data: 'col_2', name: 'col_2' },\r\n                    { data: 'col_3', name: 'col_3' }\r\n                ],                \r\n     \"sScrollX\": '100%',\r\n     \"autoWidth\": false\r\n });\r\n```\r\n\r\nController method\r\n\r\n```\r\nreturn Datatables::of($chargeback_logs)\r\n                            ->addColumn('action', 'action here')\r\n                            ->make(true);\r\n```"}}