Questions tagged [ng2-smart-table]

ng2-smart-table is smart table used in web development API

ng-smart-table is a smart table used in web development API like Angular 2+. It is simple to use. It performs CRUD operations easily with provided back-end support. It can sort data quickly. Table contains actions like Insert, Edit, Delete. Further documentation can be found on ng-smart-table

253 questions
2
votes
0 answers

How to customize ng2-smart-table to have a header with two columns

I need an ability for ng2-smart-table to have 2 columns under a header in the table. For example, for header 'Age', I need to have columns like 'Minimum Age' and 'Maximum Age'. How can I achieve this?
suyogb
  • 146
  • 1
  • 2
  • 9
2
votes
0 answers

How can i add drag and drop functionality in ng2-smart table

I have build a angular 7 application and using ng2-smart table to showing some records now i want to add drag and drop functionality in to this table so that i can drag the column or row from ng2-smart table and drop it to another table. can anyone…
2
votes
1 answer

How to delete a row in ng2-smart-table

I'm working on an angular project. I'm using ng2-smart-table as a table in my project. I already connect to google cloud firestore and now I can add and retrieve data with firestore. I want to make an option for deleteing the rows. How can I do…
ruwan liyanage
  • 419
  • 2
  • 11
  • 24
2
votes
1 answer

How to refresh ng2-smart-table from Custom Render component

I have created a custom render component to add buttons to my ng2-smart-table. The buttons are displayed correctly, and I can perform the action. What I want now is to refresh the table when the action is completed. How can I achieve this? I have…
Logan
  • 2,445
  • 4
  • 36
  • 56
2
votes
3 answers

How to implement server side pagination in Ng2-smart-table?

I have created a new custom data source which extends the local Data Source. So that I am able to get all the records in the database. But that's not the case, because I have a thousand records in my database. So the above implementation is not…
grk
  • 31
  • 1
  • 3
2
votes
1 answer

ng2-smart-table how to change custom button show and hide on click

i have play and start custom button. When i click on play icon Stop icon should be visible and play icon should be hide for row where i clicked.
2
votes
2 answers

ng2-smart-table on click row should highlighted

i have already tried to solve the issue but not able to highlight row on click event.
2
votes
1 answer

ng2-smart-table update list dynamically

I have an ngx-form-settings and a dropdown object in a column. This dropdown should be populated by a query (through a service call). This is the settings: site: { title: 'SITE', type: 'html', editor: { type: 'list', …
Kasper
  • 685
  • 2
  • 11
  • 30
2
votes
2 answers

How to update data into another page using smart table in Angular 6

I am using ng2-smart-table in my angular project. Smart table is providing built-in add, edit and delete data but I don't want to use it. I want to edit data on another page, like we do for every CRUD operation. I have searched it but I did not find…
Kinjal
  • 91
  • 2
  • 9
2
votes
1 answer

how filter custom data returned from valuePreparefunction in ng2 smart table

I use the ng2 smart table, my problem is the filter because i returned the custom data from valueprepareFunction of ng2 smart table, i Have this.... columns: { id: { title: 'Id', type: 'string' }, surname: { title: 'surname', type:…
Vincenzo Piro
  • 81
  • 1
  • 5
2
votes
1 answer

how to have autocomplete on create and edit using ng-2 smart table

So,here i am binding data from array i.e nameAutocompletee but i want to bind it from Api where table datasource is bind. Autocomplete is working fine with hardcoded array,but on edit mode it doesn't retain its actual value instead. This is my…
Jayant Belekar
  • 243
  • 1
  • 3
  • 9
2
votes
0 answers

How to pass auth token in header using ng2 smart table (ServerDataSource)

How can I pass auth token in API call to server using ng2 smart table? My current code is as below: this.source = new ServerDataSource( http, { endPoint: environment.ApiBaseUrl + 'questions', dataKey: 'data', …
Umair Malik
  • 1,403
  • 3
  • 30
  • 59
2
votes
1 answer

Remove Column Filter Placeholder from Ng-Smart-Table

Been fighting with ng-smart-table trying to find an elegant way to remove the Column Filter placeholder without overriding the javascript. I know i can modify node_modules the module within that directory but i need to modify this inside the…
MizAkita
  • 1,115
  • 5
  • 21
  • 52
2
votes
2 answers

ng2-smart-table with custom editor, not updating datasource on edit

I have an issue with ng2-smart-table, which I fill with an empty localdatasource. I have a Date column, which use a custom editor : dateInscription: { title: 'Date', filter:false, type: 'string', …
Echtelion
  • 161
  • 2
  • 7
2
votes
0 answers

ng2-smart-table reloading from custom render component

I have created two component Listcomponent and btncomponent.List component is main component to initilize datatable and btn component is custom component for rendering custom button in action column. My problem is while i deleting record from data…