Is there a way to bind array object having key/value or text/id to dropdown type.
below is my code.
var ddSource = [];
ddSource.push({id: 1, value: ‘John’});
ddSource.push({id: 2, value: ‘Smith’});
ddSource.push({id: 3, value: ‘Peter’});
var col = {};
col.type = ‘dropdown’;
col.allowInvalid = false;
col.className = ‘type11’;
col.trimDropdown = false;
col.source = ddSource,
currently I am binding only name, but how can I bind key/value or Text/Id to dropdown?