The trie in Flexgrid + Angular 5

Posted by: nildoni2 on 6 July 2018, 4:59 am EST

  • Posted 6 July 2018, 4:59 am EST

    Hello,

    I’m using Wijmo 5.2x in an Angular 5 project and I would like tomake the sorting in a table.

    I have a method that retrieves rows of correspondences, and it allows to modify them.

    the problem is when i click on this method (it’s checkbox), it gets the correspondences but it changes the order, and also when i try to sort, the values of the columns change by themselves (which i don’t want).

    Thank you in advance!

  • Posted 9 July 2018, 6:14 am EST

    Hi,

    As we understand, you would like to prevent sorting on toggling checkbox state, if column is already sorted.

    Please confirm this…

    ~Manish

  • Posted 9 July 2018, 7:06 am EST

    Hi Manish,

    Yes the rows change their order and most columns folow the new order of the rows but two columns do not (one of them is the column of the check boxes).

    Thank you,

  • Posted 10 July 2018, 9:44 am EST

    Hi,

    The default sorting on collectionChanged while sorting is applied may be prevented by setting collectionView.canSort property to true or false. This property should be set to true on FlexGrid’s Header or Filter dialog’s button mousedown event and it should be set to false on click event and sourceCollection should be updated to the sorted value to keep current sorting.

    Please refer to the following demo sample;

    http://jsfiddle.net/Wijmo5/xa356c78/

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels