Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to reset page number to 1, dynamically? #53

Open
arunmeanssun opened this issue Feb 17, 2021 · 1 comment
Open

Is there any way to reset page number to 1, dynamically? #53

arunmeanssun opened this issue Feb 17, 2021 · 1 comment

Comments

@arunmeanssun
Copy link

arunmeanssun commented Feb 17, 2021

Hi, I am using ornamentum grid for my data to display. I am facing an issue with resetting page number to 1, when I refresh the data. I am using only client side pagination.

Also, I want to know about 'ID' property of table and how it can be effectively used to control table, programatically.

When I try to import "DataTableEventStateService" from 'ornamentum' , "I am getting error "Module not found: Error: Can't resolve 'ornamentum"

@kavinda1995
Copy link

For the first question, this will work

  1. Get the ref to the ornamentum table element
  2. this.tableRef.config.offset = 0;
    this.eventStateService?.dataFetchStream.emit(DataFetchMode.SOFT_LOAD);

eventStateService is "DataTableEventStateService"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants