Archive
Posts Tagged ‘Non table node’
Data Tables – Error – Non table node initialization
January 9, 2018
1 comment
In one of my Dynamics portal’s requirements, I had to use Data Tables table control to bind the search results.
After referring helper files and configured the ‘Data Tables’ table control in my HTML, I encountered below error during the run:
Reason & Fix:
- ‘Data Table’ table control requires a <table> place holder in the HTML page, which will get rendered with result set (i.e., json collection) in run time.
In your <script>:
var table = $(‘#customGrid‘).DataTable({
data: rows,
destroy: true,
columns: columns});
- If you refer any control (i.e., Div/Span etc…) other than <table> you will get the error.
In your HTML <body>:
<table id=”customGrid” class=”display”></table>
- I wrongly used <Div> control in my case and replaced with <Table> to fix the issue.
🙂
Categories: Misc
Data table, Non table node