Can I use dataTables with AngularJS UI Ng-grid(not ui-grid)
Can I use dataTables with AngularJS UI Ng-grid(not ui-grid)
baoyun
Posts: 3Questions: 2Answers: 0
Hi,
I am using ng-grid(I cannot change to other plug-in or update to ui-grid ) to display my data from query and I would like to use the export to excel function in DataTables.
However, I notice I should have a table element in my code.
eg:
<table id="table"></table>
But I just have
<div class="gridStyle" ng-grid='gridOptions' ></div>
Is it possible for me to use DataTables?
Thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
No - DataTables requires that semantic markup be used to define the tables. It cannot be used on
div
element - sorry.Allan
Firstly, I assume this supercedes your post timed at 7:28.
Secondly, DataTables requires a valid HTML table.
Thirdly, I don't know what ng-grid provides that DataTables doesn't.
@allan Thank you for replying.
@tangerine actually I want to use the export to excel function because the one I use now is really slow.