简体   繁体   English

Flexgrid + Angular 5中的特里

[英]The trie in Flexgrid + Angular 5

I'm using Wijmo 5.2x in an Angular 5 project and i would like to make the sorting in a table. 我在Angular 5项目中使用Wijmo 5.2x,我想在表中进行排序。 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). 问题是当我单击此方法(它的复选框)时,它获取了对应关系,但更改了顺序,并且当我尝试排序时,列的值也自行更改(我不想要)。

I mean 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 in advance! 先感谢您!

Probably, you would like to prevent the sort operation while editing the content of the FlexGrid cell. 可能您想在编辑FlexGrid单元格的内容时阻止排序操作。 If yes, the behaviour you are observing is by design. 如果是,则观察到的行为是设计使然。 And it can be modified by assigning sorting items to CollectionView sourceCollection and set canSort to false to prevent sorting. 并且可以通过将排序项分配给CollectionView sourceCollection并将canSort设置为false来防止排序,从而对其进行修改。 Please refer to the fiddle sample that implements the same. 请参考实现相同内容的小提琴示例。

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

~Manish 〜Manish

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM