Hi,
why is the combo only returning one value back to the grid cell and grid transactions? If I select multiple dropdown entries, I want all of them to be returned to the grid. is there a trick?
as mentioned here I can code some hack and use editCellEnding event to get the values, but that's not cool. And later on, if I edit a cell again, I have to set the selectedItems manually!?
Is there an easy solution?
Hi maxschaf,
Could you please try to attach, if possible, a small sample project, reproducing the above mentioned issue, I will be happy to take a look at it?
Hello,
here is an example. If I add a new row and select multiple entries out of the combo, all values (valueKeys) have to be added to the grid cell, but only the first one is added. In my opinion, this is a bug or at least bad behavior :) .
http://jsfiddle.net/maxschaf/4Vb9d/2/
Yours.
Thank you a lot for the sample!
You should set allowCustomValue: true
editorOptions: { allowCustomValue: true, required: false, dataSource: comboDataSource, textKey: "value", valueKey: "key", multiSelection: "onWithCheckboxes"
}
Well, customValue:true uses the text as new cell value and also commits the text separated by ',' to the transactionlog. it's better than not considering multiple selected values at all, but it's no nice behavior. I want to show the text of every entry (in dropdown and ',' separated in cell), but I want to use the keys in datasource and transactionlog. if some text-word contains a ',' it's not possible to separate this string on postback again.
see http://jsfiddle.net/maxschaf/4Vb9d/3/
any solution idea? I coded a solution myself, but a built-in functionality to handle multiselection is a must-have feature of a combo.
yours.
Hey maxschaf,
Can you take a look at the attached sample which uses the itemTemplate and see if it suits your needs?
Thank you.