cnizzardini / cakephp-datatable

CakePHP Component for interoperability between CakePHP 2.x and jQuery DataTables plugin.
62 stars 49 forks source link

emptyFields attribute not working as expected #4

Closed cnizzardini closed 2 years ago

cnizzardini commented 10 years ago

I was playing around with the emptyFields attribute today to display some additional table cells in a datatable instance and it was not working as expected. I'm not sure why, but the work around I put in place was to just add an additional column reference to the end of the $this->DataTable->fields array and then either hide it via "aoColumns" {bVisible: false} or overwrite via the "fnCreatedRow" callback $('td:eq(10)', nRow).html('');