I have a grid where one of the columns is editable and the user should be able to select multiple values from a drop down menu.
I read the documentations and checked multiple examples with editorType: "multiselect" and options: [].
However i didnt find a way to implement a key value mapping similar to the combo box which was a part of dhtmlx5 suite.
Any example how i can implement this very basic thing?
If you have multiselect and you dont selected anything from the drop down the API throws error:
suite.js:13 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
at suite.js:13:76896
at Array.find (<anonymous>)
at suite.js:13:76870
at Array.map (<anonymous>)
at suite.js:13:76811
at Array.map (<anonymous>)
at suite.js:13:76484
at Array.map (<anonymous>)
at Object.e.getCells (suite.js:13:76182)
at P (suite.js:13:149531)
at Object.e.proRender (suite.js:13:155226)
at qt.render (suite.js:22:138680)
at qt.Jt [as _redraw] (suite.js:22:13980)
at qt.redraw (suite.js:22:13034)
at qt.<anonymous> (suite.js:22:12384)
at o (suite.js:22:968)
The error may appear even if u have single select. Havent tried yet.
You can check the is the example you posted earlier in this thread. Currently it is a combobox and it doesnt allow u to deselect the preselected value which is a strange behavior?!??!?!
But If you change the combobox with multiselect and then try to remove the selection from the cell it will throw an error.
We have fixed your reported problem in the latest dhx.Suite update (v.7.3.1). Now the multiselection works well in case of deselecting all the options.
You can check it in your original snippet.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan