In addition to the above question, another approach would be using a selector with optgroup, like:
<select class="categorias">
<optgroup label="Food">
<option>Cheese</option>
<option>Egg</option>
<option id="newDairy">NEW</option>
</optgroup>
<optgroup label="Vegetables">
<option>Cabbage</option>
<option>Lettuce</option>
<option>Beans</option>
<option>Onions</option>
<option>Courgettes</option>
<option id="newVeg">NEW</option>
</optgroup>
</select>
In my Col Model, I could use:
{ title: "Categoria", dataIndx: "nome_categoria",
editor: {
type: 'select',
options: // here I have to link it to a remote datasource, but how to deal with optgroup?
}
Sorry for lots of questions...