I have a table showing a list of items. I clicked on one item in page 3 and navigated to details page of that item. Now after completing task in details page when i navigate back to table page, i want to come in same page 3. current behavior: it navigates to page 1. Reading documentation of Data Tables, I found a property stateSave that saves states. How can i implement it in angular2-datatable? I am using angular2-datatable for displaying items in table.
How can i save pagination, sort, search state of a table in Angular 8? I am using angular2-datatable
1.2k Views Asked by kirk limbu At
1
There are 1 best solutions below
Related Questions in ANGULAR
- Firebase link existing user to anonymous account?
- It doesnt always show all the books on my homepage
- Google adsense ads.txt status cannot be not found
- When I navigate to the URL'http://localhost:4200/', it redirects me back
- Ionic Angular Standalone ion-icon are not showing at all
- How to make Angular understand that view child is of a specific type, not a general ElementRef?
- vscode, debug angular, first time, doesn't debug, 2nd time stops at main.js then it's ok
- How to perform CRUD operations on a static JSON array in Angular? (without API)
- Ngrx props<>() method in createAction()
- How to animate rotation of an image inside input control?
- Detecting click inside and outside of the listening component in Angular
- Angular - type guard not narrowing types
- In node_modules file i am getting Angular genric error while using fontawesome in angular12
- Angular 16 sending null values to API
- GoogleCloud Error: Not Found The requested URL was not found on this server
Related Questions in DATATABLE
- Show DataGrid rows in Stimulsoft report Same order as DataGrid
- Laravel Livewire data table sorting livewire update payload
- Having a problem in datatables and fullcalendar scripts
- Is there a way to set a cells value based on the value this cell held at a certain time, even when the cell value changes over time?
- how to create a datatable with multiple data listing and sorting in same column?
- How can I change pages when searching by id for an element in a table? Vue js
- My DataTable becomes stuck when navigating between the table pages
- "Uncaught SyntaxError: Unexpected end of JSON input" when use DataTable in ASP.NET Boilerplate
- Merge three Datatables deleting duplicates rows after copying their column data to the remaining row, finally sorting twice
- is there a way in vuetify to adjust padding in data table?
- how to import dat files into datagridview with VB.NET
- Error https://datatables.net/tn/7 Datatable serverside processing
- nextjs primereact datatable : fails to render if mapped
- Why is it when I try to select all the rows, they only select the rows from the current active page while I need it to select all rows from all pages?
- Balance column in a HTML table using PHP
Related Questions in PAGINATION
- In Datatables, start value resets to 0, when column sorting
- React Query infinite scroll pagination resets to first page
- How to implement pagination on the custom dropdown item's in flutter
- How to modify HTML in WordPress core file
- CakePHP 4 Custom Routing Issue with Paginator Links
- How to set up the link for the paginated files in the Get Rows(V2) Logic App connector and pass it via Azure API call?
- Paging 3 Library with Jetpack Compose Not calling the load method after initial load
- Customising Mui pagination to dots instead of numbers
- Performance degradation in Asynchronous paging
- PrimeNg paginator wont display "Entries per page" or Showing entries per page
- WordPress Pagination not working Properly with Custom Post Type
- Is it possible to programmatically access rows from different pages within a TablePress table that utilizes pagination?
- Pagination does not work in Apollo React Native
- Vue 3 component not rendering on the page
- pagination node.js mongoose express, am I doing it wrong?
Related Questions in ANGULAR8
- update angular 8 to 9
- How to manipulate Array of Object based on condition Angular 8
- <tbody> tag is removed after @swimlane/ngx-charts & @swimlane/ngx-graph version upgrade in Angular 8
- How to make Cancellable api calls in loop in Angular?
- Angular 8.3 - Child not rendered, instead parent is being rendered
- How to submit the formarray in angular in the given format?
- how to build Angular source code in local?
- how to download Angular8 source code and make a fix for it in local
- How should I add values in 2-level array format to a formGroup?
- Error in The target entry-point "ng2-slim-loading-bar" has missing dependencies: rxjs/Observable
- How to display half year based on year selection and disable half year for future years Angular 8
- How to display the year in the dropdown when July month starts
- Angular agDatePickerComponent not working on empty or blank ag grid cell
- How to add new input fields for lists and pass those data to dialog in angular 14
- Angular 8 creating a link between 2 separate variables
Related Questions in SAVESTATE
- Using Assisted Injection to inject savedStateHandle in ViewModel returning null argument value
- PrimeNG table save filters state in URL query params. Angular
- how can I save measurementUnits correctly Imperial (F)", "Metric (C) in jetpack compose?
- How to continue with last screen when i exit or app is crashed on Android with Compose
- How can Saved Instance State read/write to disk in Android?
- React.js - AsyncStorage: Have to press button twice to save the correct value i want
- android recyclerview restoring state in object
- Prevent Android NFC Intent from re-calling onCreate and/or save a variable despite reloading state
- Unable to access app specific internal Storage
- Datatables - Keeping only selected page number(not order or search or filter) after callback and clear on refresh
- is there way to preserve the value of variable state to show in textview after switching between light and dark modes
- Save state in Android
- Installing App via Android Studio reverts back my old app save state (WebView LocalStorage)
- Saving recyclerview items with savestate
- How can i save pagination, sort, search state of a table in Angular 8? I am using angular2-datatable
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are many ways you can resolve this I think.
I prefer the router way because whenever the URL refreshed or copy paste to another browser it will render the exact page.
use
this.router.navigate(['table', 1]);to initially load tableIn TableComponent use the below to get the page number on
ngOnInitThis is the whole idea, The router config and routing urls may vary according to you app. Please try this.