Following example @ https://docs.telerik.com/kendo-ui/knowledge-base/grid-sort-displayed-columns-menu-items sorts a column menu. When hide column is then clicked, the wrong column is hidden.
This can be seen in your own dojo example linked in the above doc and @ https://dojo.telerik.com/UWuxOseV . Hiding column Ship Name hides Ship Address instead.
This seems to have been introduced in 2019 R2 SP1 version.
Hello, Jon,
We have discussed this with the team and I have now logged an issue in the repository to be fixed. You can monitor it here:
https://github.com/telerik/kendo-ui-core/issues/5380
Since you were the first person to report this issue to us, I have also added some Telerik points to your account.
Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Hello, Jon,
Thank you very much for the feedback regarding the how to article.
I believe that the current behaviour is a result of this fix:
- In the Grid, if a column field matches another column title, the menu hides the wrong column
https://github.com/telerik/kendo-ui-core/issues/3689
The code, aside from other things, also added this line which explains why the wrong column is hidden - it takes the column by index sourced from the index of the menuItem:
column = columns[item.index()];
Alex Hajigeorgieva
Progress Telerik