olivier
(Olivier)
April 13, 2018, 6:16pm
1
Hi,
This question has been raised previously (https://forum2.handsontable.com/t/missing-sortindicator-pro/125 ) but I don’t think there’s a solution yet.
When sorting using setColumnSorting the sort indicator is not set in the Header
This is really disturbing for the end user.
example here:http://jsfiddle.net/gate61/8o9od8dw/10/
Also, I think there’s a bug: try the following with the fiddle above:
run
click the button -> column sorted descending on B but no indicator
click e.g. header D -> sorted ascending on D and indicator set correctly
click button again -> sorted descending on B, but indicator is moved from D to B but stays “ascending” which is not correct !
Maybe it’s a updateSortIndicator problem but I tried with/without without luck.
Is there a workaround or a bug fix expected soon ?
Thanks,
Olivier
Hi @olivier
You’re right. We do not get a sortIndicator
while sorting table programmatically. There’s one method from the columnSorting
plugin called updateSortIndicator
but it doesn’t show it either.
I’ve reported it on our Github board https://github.com/handsontable/handsontable/issues/5034
olivier:
click the button -> column sorted descending on B but no indicator
click e.g. header D -> sorted ascending on D and indicator set correctly
click button again -> sorted descending on B, but indicator is moved from D to B but stays “ascending” which is not correct !
And here is the issue report for this behavior sortIndicator doesn't update · Issue #5035 · handsontable/handsontable · GitHub
Thank you so much for reporting. I will send you a message as soon as there’s any news on that issues.
Hi @olivier
the issue that I have mentioned at https://github.com/handsontable/handsontable/issues/5035 and we discussed here has been solved. Please update to 6.0.0
+