datatable redraw with updated data

datatable redraw with updated data

StefanBStefanB Posts: 2Questions: 2Answers: 0
edited September 2016 in Free community support

Hello I'm instantiating my datatable on the following way:

`var dataTableOption = { "pageLength" : 5,
                            "pagingType": "simple",
                            "info": false ,
                            "searching": false,
                            "select" : {
                                         style: 'single'
                                       },
                            "lengthChange": false,
                            
                            "columnDefs": [
                                            {
                                                "targets": [ 0 ],
                                                "visible": false,
                                                "searchable": false
                                            }
                                          ],
                            data : this.workdata,

                            columns : [ { data: 'id' },
                                        { data: 'itemno' },
                                        { data: 'artnr' },
                                        { data: 'quan' },
                                      ]


                          };

    this.dt = $('#dt-overview').DataTable(dataTableOption );`

when my workdata is changing because of events in application logic, I want that the data of datatable to beupdated and the table should display new data. In the debugger I've seen, that also rows data is not updated. How can I realize it?

thanks in advance!

This discussion has been closed.