Multiselect in treetable

Hi,

I have editable treetable where some fields are editable as text, other as dates and I would like to add multiselect popup list for some fields. I can achive this with onBeforeSelect where I find column and change editor for whole column (this.config.columns[n].editor = “popup”;).

Treetable columns contain popup:ApopupA and as ApopupA I make

ApopupA = webix.ui({
view:“popup”,
body: {
view:“multiselect”,
id:“multi”,
label:“Participant”,
options:[
{ id:1, value:“Alex Brown” },
{ id:2, value:“Dan Simons” }
]
}
});

Everything works until I select something. THen suddenly label disappears and when I press"Select" button, nothing happens. Field is not populated with selection.

Is it possible to make custom popup multiselect list with options that will be based on json data?

Screenshots:

  1. http://s2.postimg.org/ychinz9jd/pic1.jpg
    after cell selction, popup is visible

  2. http://s21.postimg.org/9y1jk4413/pic2.jpg
    after selection, label disappears

  3. http://s8.postimg.org/ywpfedpph/pic_3.jpg
    after select, cell is empty… No erors in console.

Hi Arnes,

Do you really need such complex logic when you can use a built-in multiselect editor? Just

{ id:"some", editor:"multiselect", optionslist:true,options:[... ]}

http://docs.webix.com/samples/60_pro/01_datatable/04_editors/08_editor_multiselect.html

Hi Helga,

I am now really ashamed :slight_smile: Thank you. I knew that it can not be that complicated.

PS: I am new with pro features and that maybe explains…