Hi Wojciech,
We analyzed your sample.
Query : When checked several times, is appended to the text box in a box model layout several times, but when unchecked it doesn't disappear from text box.
Solution: Field attributes should be same as what we mapped to fields properties when control initialize. i.e., you have mapped ‘id’ column to value field so the same column name should use in the object which is passed in addItem method.
Query: When I add an item dynamically (with a new group) DropDownList behaves strange. It doesn't add new grouping label and new item
Solution: We don’t have support for grouping or sorting in addItem method. If you require grouping you can manually push the new group with corresponding fields to the existing array and bind that to the dataSource of dropdown via setModel as
ddlobj.setModel({dataSource:jsonData});
We have prepared a sample for your reference. Please refer the below given sample link
Note: When we bind data dynamically we will face issue with height of dropdown text box with multiselect mode. This issue has been fixed internally and this fix will be included in our Volume 2 SP2, 2016. So we have overridden the method _destroyBoxModel to overcome this issue in sample level.
<code>
ddlobj._dummydestroy = ddlobj._destroyBoxModel;
ddlobj._destroyBoxModel = function(e){
ddlobj._dummydestroy.apply(this,e);
ddlobj._ulBox = null;
}
</code> |
Please let us know if any concern
Regards,
Keerthana.