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

Q-Table - sort by non visible column #1886

Closed
cjpit opened this issue Apr 4, 2018 · 3 comments
Closed

Q-Table - sort by non visible column #1886

cjpit opened this issue Apr 4, 2018 · 3 comments
Milestone

Comments

@cjpit
Copy link

cjpit commented Apr 4, 2018

When using q-table, if a non-visible column is used to sort, (using visible-columns), initial pagination sorting does not work. Making the column visible, and the sort works.

eg

data () {
return {
pagination: {
sortBy: 'isownconsignment', // String, column "name" property value
descending: true,
page: 1,
rowsPerPage: 5 // current rows per page being displayed
},
visiblecolumns: ['pn','description','warehouse','condition_code','qty_oh','unit_price'],
columns: [
{
name: 'isownconsignment',
field: 'is_own_consignment',
sortable: true,
label: 'consignment'
},
{
name: 'pn',
label: 'PN',
field: 'pn',
sortable: true,
align: 'left'
}, ................

@rstoenescu
Copy link
Member

Please provide a jsfiddle so I can investigate faster. Thanks.

@cjpit
Copy link
Author

cjpit commented Apr 4, 2018

Sorry about that...
https://jsfiddle.net/d5feev1j/18/

if you then add consignment to the visible-columns, the initial sort works as expected..

Thank you!

@rstoenescu rstoenescu added this to the v0.17.0 milestone Jul 21, 2018
@rstoenescu
Copy link
Member

Sorry it took so long. Totally forgot about this :(
Will be available in 0.17 to be released in a few days.

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