This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 9 months ago.

using data tables


  • dpaynetdev
    Participant

    Member Reply #4775

    Hi,

    We are using Metronic+AngularJS. We use managed data table to maintain a standard collection published by a REST service. When adding a new item we show a modal dialog to collect data and on the close event of the modal we update the Angular resource object and post the data. What we would like to do is to update the table dataset also but we do not know how. Maybe the problem is we are not following the correct scheme. Could someone give us some feedback in order to accomplish this?

    Sean
    Sean
    Keymaster

    Posts: 4527
    Support Staff Reply #4783

    Hi,

    In your case to reload/redraw standard datatable you can use draft() API method:
    http://datatables.net/reference/api/draw()

    For any further information you can check the documentation.

    Also you can check AngularJS implementation of the datatables here:
    http://l-lin.github.io/angular-datatables/#/zeroConfig

    If you need any further clarifications please let us know.

    Thanks.

Tagged: 

You must be logged in to reply to this topic.