Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Clearing the sort order with clearSort() destroys grouping
posted

Hi Infragistics team,

clearing the sort order with clearSort() (https://es.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/classes/igxgridcomponent.html#clearsort) leaves previusly grouped data in a messy state.

Steps to reproduce:

  1. Group data manually by any column, that has the same value in multiple rows.
    => Values of that column appear alphabteically sorted now.
  2. call grid.clearSort() programatically
    => Values of that column appear multiple times and no appearently not sorted at all.

(Sorting manually again afterwards fixes it. But then it's too late :-))

 

Any idea how to fix this? Thank you!

Best Regards
Mario

Parents
No Data
Reply
  • 640
    Offline posted

    Hello Mario,

    Thank you for posting in our community.

    As mentioned in our components specifications on GitHub, by design the Group By feature requires sorting to be performed on grouped columns.

    In order to be able to assist you further I will need some additional information regarding your scenario. Could you please provide me with more details about your use case and elaborate on for what purpose you need to use the clearSort method of IgxGrid?

    Looking forward to hearing from you.

    Regards,
    Viktor Kombov
    Entry Level Software Developer
    Infragistics, Inc.

Children