activeContent combo box

I couldn’t get the following snippet into work.
Can anyone please help me out ?

http://webix.com/snippet/728169ef

Also, is it possible to pass options to activeContent.combo?
If, so I could just use one combo and pass necessary options to it.

ActiveContent was designed for populating active areas in data components, such as ui.datatable or ui.list. For now, I don’t see a reason not to use several ui.combo within the layout divided by columns. Can you please clarify your use-case?

Actually, your snippet works fine, but don’t forget to specify the dimensions of active combo boxes: http://webix.com/snippet/b6767370

Still, for your case I world recommend you to use standard layout with columns. ActiveContent will not give you all the possibilities of controlling the ‘active’ widgets.

@Listopad @Helga Thanks for helping me to understand the correct use-case’s for active contents.

Yes, using columns works perfectly fine.

But, Is there a possible way to pass options to activeContent combo??

It is possible, but please note that acticeContent duplicates the same combo object (including the ID). So technically yes, you can pass the options the same way as for the ui.combo, but it will affect all rows.

The only way to set different options is to use onBeforeShow event for the suggest. Something like next:

suggest:{     
   on:{ 
      onBeforeShow: function() {                               
         var combo = $$(this.config.master);      
         combo.getList().clearAll();
         combo.getList().parse(optionsArray);                  
      }
   }
}

An important thing: once you change the suggest config, you need to redefine the filtering rule.

okay.
Thank you :slight_smile: