selected = "true" attribute for <option> tag not working

var xmlString = ‘<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>’;
xmlString += ‘<row id = "’+ 1 + ‘">’;
xmlString += ‘’;
xmlString += ’ One ';
xmlString += ’ Two ';
xmlString += ’ Three ';
xmlString += ‘’;
xmlString += ‘’;
xmlString = xmlString + ‘’;

grid.parse(xmlString);

selected = “true” / selected = “selected” not working, it populates the combo with values but when i want to select a particular item on the combo i am not able to…

If you use combo as the grid editor, you need to set cell value:

var xmlString = ‘<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>’;
xmlString += ‘<row id = "’+ 1 + ‘">’;
xmlString += ‘2’;
xmlString += ’ One ';
xmlString += '<option value = “2”> Two ';
xmlString += ’ Three ';
xmlString += ‘’;
xmlString += ‘’;
xmlString = xmlString + ‘’;

Thank you so much, it worked like a charm…