{"action":"opened","issue":{"url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1872","labels_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1872/labels{/name}","comments_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1872/comments","events_url":"https://api.github.com/repos/wenzhixin/bootstrap-table/issues/1872/events","html_url":"https://github.com/wenzhixin/bootstrap-table/issues/1872","id":126340734,"number":1872,"title":"How to use ajaxOptions, quick example?","user":{"login":"tedbakers","id":16678784,"avatar_url":"https://avatars.githubusercontent.com/u/16678784?v=3","gravatar_id":"","url":"https://api.github.com/users/tedbakers","html_url":"https://github.com/tedbakers","followers_url":"https://api.github.com/users/tedbakers/followers","following_url":"https://api.github.com/users/tedbakers/following{/other_user}","gists_url":"https://api.github.com/users/tedbakers/gists{/gist_id}","starred_url":"https://api.github.com/users/tedbakers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tedbakers/subscriptions","organizations_url":"https://api.github.com/users/tedbakers/orgs","repos_url":"https://api.github.com/users/tedbakers/repos","events_url":"https://api.github.com/users/tedbakers/events{/privacy}","received_events_url":"https://api.github.com/users/tedbakers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T04:49:40Z","updated_at":"2016-01-13T04:49:40Z","closed_at":null,"body":"Hi all,\r\n\r\nI have scoured the internet and looked for how to use the bootstrap-table to send a simple object to the server using the ajaxOptions data property during it's request. The examples that are available have either been removed or just don't seem to work as I would expect.\r\n\r\nI have the following code\r\n\r\n            var obj = { \"Facilities\": ['1234', '123456'] };\r\n\r\n            $('#tablePolicies').bootstrapTable({\r\n                url: '/api/PolicyConfigurationAPI/getPoliciesInFacilities',\r\n                method:\"POST\",\r\n                ajaxOptions: {data: JSON.stringify(obj)},\r\n                showFilter: true,\r\n                idField: 'PolicyID',\r\n                columns: [{\r\n                    field: 'state',\r\n                    checkbox: true\r\n                },\r\n                    {\r\n                        field: 'Description',\r\n                        title: 'Description',\r\n                        sortable: true\r\n                    }]\r\n            })\r\n\r\nCalling the following c# mvc service...\r\npublic HttpResponseMessage getPoliciesInFacilities(List<string> Facilities)\r\n{}\r\n\r\nI have tried several different combinations of options and the custom ajax call back/override.\r\n\r\nHowever, I look in f12 and see the only data being sent is the standard (limit=10&offset=0&sort=id&order=asc)\r\n\r\nWhat am I missing? I'm sure it must be simple, any help greatly appreciated.\r\n\r\nThanks\r\n\r\nTed\r\n"}}