Open dwitsken opened 10 years ago
Below code works fine in IE11 on first page load. Column classes work properly with textalignment. On initial load of page in CHrome the classes are not there. If I reload the page the classes work properly.
$('#my-final-table').dynatable({ dataset: { perPageDefault: 30, perPageOptions: [30, 50, 75, 100] }, readers: { 'prd_price': function (el, record) { return Number(el.innerHTML) || 0; } }, table: { copyHeaderClass: true } }).bind('dynatable:afterProcess');
I also tried below code with processingComplete added but this only gives error saying not defined.
$('#my-final-table').dynatable({ dataset: { perPageDefault: 30, perPageOptions: [30, 50, 75, 100] }, readers: { 'prd_price': function (el, record) { return Number(el.innerHTML) || 0; } }, table: { copyHeaderClass: true } }).bind('dynatable:afterProcess', processingComplete);
processingComplete();
Like dynatable for its simplicity compared to Datatables but not liking how it strips out classes and IDs of TR and TD elements.
@dwitsken Can you send over the HTML associated with this? Perhaps a code pen/jsfiddle or demo page?
Below code works fine in IE11 on first page load. Column classes work properly with textalignment. On initial load of page in CHrome the classes are not there. If I reload the page the classes work properly.
$('#my-final-table').dynatable({ dataset: { perPageDefault: 30, perPageOptions: [30, 50, 75, 100] }, readers: { 'prd_price': function (el, record) { return Number(el.innerHTML) || 0; } }, table: { copyHeaderClass: true } }).bind('dynatable:afterProcess');
I also tried below code with processingComplete added but this only gives error saying not defined.
$('#my-final-table').dynatable({ dataset: { perPageDefault: 30, perPageOptions: [30, 50, 75, 100] }, readers: { 'prd_price': function (el, record) { return Number(el.innerHTML) || 0; } }, table: { copyHeaderClass: true } }).bind('dynatable:afterProcess', processingComplete);
Like dynatable for its simplicity compared to Datatables but not liking how it strips out classes and IDs of TR and TD elements.