Can I use dataTables with AngularJS UI Ng-grid(not ui-grid)

Can I use dataTables with AngularJS UI Ng-grid(not ui-grid)

baoyunbaoyun 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

Answers

  • allanallan Posts: 63,747Questions: 1Answers: 10,509 Site admin
    Answer ✓

    No - DataTables requires that semantic markup be used to define the tables. It cannot be used on div element - sorry.

    Allan

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    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.

  • baoyunbaoyun Posts: 3Questions: 2Answers: 0
    edited October 2015

    @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.

This discussion has been closed.