ornamentum icon indicating copy to clipboard operation
ornamentum copied to clipboard

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

Open arunmeanssun opened this issue 4 years ago • 1 comments

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"

arunmeanssun avatar Feb 17 '21 08:02 arunmeanssun

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"

kavinda1995 avatar Nov 16 '21 04:11 kavinda1995