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
0
votes
0 answers

Why the data does not show in the correct order in ng2-smart table?

I am using ng2-smart table with angular 6. When I debug the code, I can see, the order of data in my LocalDataSource in ng2-smart table. But in the table view, it doesn't show the data as the order it was in LocalDataSource. It seams like it has…
spc91
  • 93
  • 2
  • 11
0
votes
1 answer

Page getting reloaded after doing any post request for angular smart table

For angular smart table, I am doing crud operation through http request. But after every http call, page/browser is getting reloaded. deleteBook(id: number) { return this.http.delete(this.baseUrlBooklist + "/" + id);} onDeleteConfirm(event) { …
akeeseth
  • 845
  • 2
  • 15
  • 32
0
votes
1 answer

Properly deserialize json array to display results in ng2-smart-table

I am using ng2-smart-table and trying to display data When I create a local array of objects like: var data = [ { id: 1, name: 'Leanne Graham', username: 'Bret', email: 'Sincere@april.biz', }, { id: 2, name: 'Ervin…
Denis Evseev
  • 1,660
  • 1
  • 18
  • 33
0
votes
1 answer

Filter using masks in n2-smart-table

I'm using Angular 6 with n2-smart-table. I want to search a string with and without mask on a filter. Ex.: 28871154000178 and 28.871.154/0001-78 should return the same data. I looked around various forums but was unable to find such a way. Thanks…
Caio Ladislau
  • 1,257
  • 13
  • 25
0
votes
2 answers

Configure Datatables with Paginated Results

Can anyone suggest how to configure datatables with paginated results? As an example : Paginated results from my backend api : { "total": 50, "per_page": 15, "current_page": 1, "last_page": 4, "next_page_url": "http://domain.app?page=2", …
0
votes
3 answers

Ng2-smart-table bind 'Add New' button event to an external button

I have been using ng2-smart-table plugin for the table grid. There is an Add new button to add entry into the table. But I just want to trigger the 'Add new' event from an external button (May be top of the table but not within the table). There is…
Raja
  • 3,477
  • 12
  • 47
  • 89
0
votes
1 answer

Unable to get save data event in ng2-smart-table

I am using ng2-smart-table for maintain data in my angular 6 app. As I seen in it's git and npm page. I have set my code like this way. I am…
khushboo
  • 715
  • 2
  • 11
  • 24
0
votes
1 answer

Reusing components in ngx admin in angular 6

I am using NGX Admin and I am stuck at reusing components. I am trying to use smart table and pie charts inside the Dashboard but I am getting a template parse error. What I did was inside dashboard.module I added the module reference import {…
SP1
  • 1,182
  • 3
  • 22
  • 47
0
votes
2 answers

how set editable cells in ng2-smart-table?

I'm using a ng2-smart-table component, but i cant find an option, which set a cell is editable, like this example (http://akveo.com/blur-admin/#/tables/smart table marek as "EDITABLE CELLS") Please, help me - can I edit each cell separately in…
0
votes
1 answer

ng2-smart-table how to have edit popup

Currently, when I click edit on my ng2-table, I get an inline editing option. However, what I want to happen, is have a popup editable box (Example image is for add, but it would be the same for edit with just prefilled data and a different…
0
votes
1 answer

Unexpected end of json when installing npm package

Im trying to run npm install on ng2-smart-table. It looks like its having trouble getting some of the modules. Im getting the following error. npm ERR! Unexpected end of JSON input while parsing near '..."spdy","version":"1.1' npm ERR! A…
Tommie Jones
  • 957
  • 1
  • 16
  • 37
0
votes
1 answer

How to save changes of a table with pagination?

I have a modal that contains a data table.This table has pagination.I want to be able to modify rows from different pages and at the end press a "Save" button that would send the modified rows to the api and update the DB. So if my table looks like…
Bercovici Adrian
  • 8,794
  • 17
  • 73
  • 152
0
votes
1 answer

Smart-Table Angular 2 Validation

I'm new to angular and using angular smart-table. What i need is adding validation that no two rows can be similar???? and also adding data below at the bottom of table instead of the default way which is to add row at the top of the table??
0
votes
0 answers

smart table Angular

I'm trying to use the Akveo Smart Table for Angular I bring data from my database in the table but I can't find documentation or videos about how to (Add , Update or delete) and sending the new data or deleting a row from my database.
0
votes
1 answer

How to add checkbox in ng2-table in Angular-4?

I need to add checkbox in Angular 4 typescript we are using ng2-table. //code for ng-table in html //to create…
Sushil Gupta
  • 97
  • 1
  • 12