richselect in Datatable works different after columnRefresh()

I have a datatable using richselect, in an onBeforeEditStart Event the options of richselect are set (loaded by Ajax) because options are different for every row.

Works perfect unless a columnRefresh() is executed.
See snippet.

https://snippet.webix.com/dujndkyj

Thanks for bugfix or workaround in advance,
Chris

you are trying to have same ids in the options. IMO working of such options is the bug. it would be better if you implement custom editor for this purpose.
https://docs.webix.com/desktop__editing.html#customeditors
or you can preload data for options and parse editor in onAfterEditStart handler

thank you for response.

no, im not going to have same ids in the options. the options have unique ids, but the option list ist variing from row to row.
i’m going to set the option list right before editor is opened (onBeforeEditStart). works perfect … until first columnRefresh() is called.

i don’t understand your suggestion for other way. could you explain?
thank you.
Chris

there are old snippets that had this idea already:

https://snippet.webix.com/3573d111

and they work…but not if using object data {id:1,value:‘x’} AND refreshColumns();

see here.

https://snippet.webix.com/h01tb19j

anyway, there is a hack for your case
https://snippet.webix.com/jvdce6fh

i’ve got found the workaround!

delete colConf.collection;

https://snippet.webix.com/r53zhm8m

oh, thanks your respond.
is your hack better than mine (delete entire collection?) for some reason?

I don’t think there is a significant difference. logic is almost the same.