creativetimofficial / ct-material-dashboard-pro-angular

68 stars 35 forks source link

How to add new row in datatable.net and allow it also for data fliter and pagination as it seems it does not work, #311

Open tracksimple opened 5 years ago

tracksimple commented 5 years ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

When any new record is added using datatable.net component in the datarows, ideally it should have been added and newly added record should also be valid for datatable row operations such as filter , pagination etc.

Current Behavior

Currently, record gets added but filter will remove that row, also it does not participate in any row operations. I need to write reload the new rows once it is added kind of feature, can not use ajax.reload as it loads all the data, loading 500 records again and again will be cumbersome, so just need to add newly row whenever it appears.

Steps to Reproduce

step 1. Use the datatable.net component provided in Angular materiel dashboard under tables. Add setTimeOut function after some time lets say 5sec and meanwhile add some rows to the dataTable.dataRows.push(someData). Step 2. It appears in the table but it does not work as expected. Please provide me any example, which will show adding new records and also can able to support row/column operations of datatables.

tasneem-ipraheem commented 5 years ago

I have the same issue

chelaruc commented 5 years ago

@tracksimple @tasneem-ipraheem check this issue #33.