How to assign values in datatable cells from popup on multiply selected filtered rows ?

Hi,

I have a datatable with some sports data.
I can select multiple rows and assign values from Medal dropdown and followed by a popup to apply common values for Rating column. This is only possible if the Nation for all the selected rows is common.

However, if I filter all common nation and then try to select some of them together and apply the common value, it does not work as the onBeforeFilter is already in use for Medal column.

Snippet: https://snippet.webix.com/avknm7lr

How can I filter any other column (Nation or Name) and apply values from Medal column and popup ?

Thanks

can I have some help on this?

Hi @ovi_zit

The point is that filtering in a datatable clears the selection in order to avoid the situation where the selected items are hidden.
Unfortunately, there is no stable solution to save the info about the selection during the filtering with related events.

The best option is to divide logic for data update / filtering, and trigger data editor from another UI element.

However, is this feature is critically important, you can create your own datafilter object and determinate which action should be triggered - editing or filtering.

Please, check the following example - the component inherits all related logic from selectFilter: https://snippet.webix.com/8zpj6v94