Primeng: Table .reset() not resetting column sort style

Created on 5 Apr 2018  路  28Comments  路  Source: primefaces/primeng

I'm submitting a ...

[ x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports)
http://plnkr.co/edit/TkTjc5qjSEFDHj6K6cxt?p=preview

Current behavior
Sorted columns keep their sorting state after resetting the table.

Expected behavior
According to the docs, .reset should "Resets sort, filter and paginator state".

Minimal reproduction of the problem with instructions
http://plnkr.co/edit/TkTjc5qjSEFDHj6K6cxt?p=preview

  • Sort grid data by any column
  • Call Table's .reset() function
  • Observe that the sorted column still looks the same

Please tell us about your environment:

  • Angular version: 5.2

  • PrimeNG version: 5.2.3

defect

Most helpful comment

I still have this problem. The header styles are resettet but the data is not resorted to the initial state. Anyone else has this issue?

All 28 comments

:+1:

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

+1

@cagataycivici Is it possible to prioritize this issue? please

+1 Can't use turboTable in our application without it.

Many comments, I'm in :)

@cagataycivici Thanks!

@cagataycivici tnks

+1

+1

still not working in version 6.0.1 ?
header style is ok, but data is not resorted after reset

I like this approach though all the work done in HTML

I still have this problem. The header styles are resettet but the data is not resorted to the initial state. Anyone else has this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agusdutra picture agusdutra  路  52Comments

sourdoth picture sourdoth  路  34Comments

nsksaisaravana picture nsksaisaravana  路  32Comments

danielkay picture danielkay  路  39Comments

vadjs picture vadjs  路  39Comments