datatable is not showing the data passed to it in the form of an array
datatable is not showing the data passed to it in the form of an array
nivethaa_1997
Posts: 2Questions: 2Answers: 0
[[u"<input class='action_checkbox' type='checkbox' timesheet_id='1' />", u"<img src='/static/Approval/img/submitted.svg'alt='submitted' class='submitted' data-toggle='tooltip' data-placement='bottom' title='Submitted'><p style='display:none;'>submitted</p>", u'ramesh.chandran', u'17-Nov-2020', u'bia_uat_mis', u'#4:for ramesh anna', u'on-premise', u'exploration', u'00:00', u'01:00', u'17-Nov-2020', 'test', u'test', u'Project', '00:00', u'Other approvals', u"<div class='dropdown'><img timesheet_id='601' id='approve_entry' src='/static/Approval/img/approve.svg' alt='Approve' data-toggle='tooltip' data-placement='bottom' title='Approved'><img timesheet_id='601' class='dropdown-toggle' data-toggle='dropdown' aria-expanded='false' src='/static/Approval/img/reject.svg' alt='Reject' data-toggle-second='tooltip' data-placement='bottom' title='Reject'> <div class='dropdown-menu'><p>Enter reason for rejection</p><textarea class='rejection_comments_field'></textarea><input type='button' class='btn reject' timesheet_id='601' id='reject_entry' value='Reject'><input type='button' class='btn cancel' value='Cancel'></div></div>"]]
this is the format of the data I'm passing to my datatable
Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide
This discussion has been closed.
Answers
Are you trying to define unicode strings with the leading
u
? I don't believe Javascript supports this format. To define unicode strings you will need something like this"\u<input class='action_checkbox'
Check your browser's console for errors.
If you still need help please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin