Optional request headers.
Object, default = {}
Adding properties to .httpHeaders object will instruct the grid to submit these parameters to the remote data source with each remote request (pull, sort, search, save, delete).
This is similar to the .postData object, however the .httpHeaders object will be used for the AJAX header part, not for the data part.
You can defined it during object creation: $('#grid').w2grid({ name : 'grid', url : 'url/to/server', columns: [ { field: 'recid', caption: 'ID', size: '50px' }, { field: 'lname', caption: 'Last Name', size: '30%' }, { field: 'fname', caption: 'First Name', size: '30%' }, { field: 'email', caption: 'Email', size: '40%' }, { field: 'sdate', caption: 'End Date', size: '120px' } ], httpHeaders: { param1 : 'value1', param2 : 'value2' } }); Or any time during the run-time: w2ui.grid.httpHeaders['myVar'] = 'value';