question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table not updating when list source changing

See original GitHub issue

Hi,

I’ve some problems with the table. In fact i’ve 3 columns but to update each value, I need a select object of 400 lines. The problem is i’ve something like 200 lines in the table so it isn’t fluent anymore … So i used a control panel to add and modify datas in the table. The problem is the table isn’t actualizing in real time: when i use the pagination or search system i find the datas (so they are correctly added), but the list isn’t actualizing by itself. Do you know how I can do to fix this ?

Here is a screenshot git_help

my table <ng2-smart-table *ngIf="_listeParamTechnicien!=null" [settings]="settings" [source]="_listeParamTechnicien" (userRowSelect)="onUserRowSelect($event)" (deleteConfirm)="onDeleteConfirm($event)" [@enterAnimationLeft]> </ng2-smart-table>

Thanks for your help !

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16

github_iconTop GitHub Comments

5reactions
Ali-Amechghalcommented, Nov 20, 2017

use : this.dataSource.refresh(); where dataSource is object of LocalDataSource type

1reaction
Kresyscommented, May 5, 2017

I found, you have to create a source like this: import { Ng2SmartTableModule, LocalDataSource } from 'ng2-smart-table'; then you declare: source: LocalDataSource; you initiate it when you create your data liste like this : this.source = new LocalDataSource(this.mylist); and you call this one in your .html

And then, when you do an action on your list, you do it on the source object like it’s explained in the doc in the Data Source Methods part

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drop-down list not updating from source list
I have a list of date which is the source for my validation, this list is an excel table, when I add a...
Read more >
Recordset Not Updating Table with Changed and/or Correct ...
From Access I can open the query, make any changes needed to any of the fields, save the record and see the changes...
Read more >
Update to Source data not updating in Pivot Table - Mr. Excel
Under "Retain items deleted from the data source" you'll likely see "Automatic" selected. Change this value to "None", refresh your table, ...
Read more >
Unable to display the updated list after pagination | OutSystems
Note that if you refresh the entire Table/Record list, it will fetch the source again. So, there is no need to assign TimecardrecordList...
Read more >
Documentation: 15: UPDATE - PostgreSQL
UPDATE changes the values of the specified columns in all rows that ... Do not include the table's name in the specification of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found