New value in datatable combo

Hi team,

Is it possile to customise a datatable combo to add new value like multicombo please ?

I tried somethings with onBeforeEditStart and onAfterEditStartd without success.

https://snippet.webix.com/6fp7d0ij

Comments

  • edited August 6

    Hey @XavierDP, you can use a combination of a multiselect editor with a multisuggest suggest to achieve a similar result: https://snippet.webix.com/0x1cl7p3.

    Please note that you will have to specify the optionslist and the separator properties for the editor and the suggest respectively, they will also have to match each other (though it seems like the only separator that will be actually displayed here would be a comma ",").

  • edited August 6

    Actually, it does seem like you can simply use a multiselect on its own, you just need to specify a separator (it will only accept a comma): https://snippet.webix.com/k12yxcc7.

    The difference here is with the first solution you can specify a different separator and the getValue will return the data separated by that specific separator, the datatable will display the data, but it will be separated by the comma (even if it's not specified as such). In the second case the editor will only take an optionslist of true or "," (true returns a comma separator), and it won't even display the data with any other separator.

  • Hi @Dzmitry

    ok thank you for your answers

    in fact, i would use the native text editor which search value in list to add a new value at the save moment

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion