Hello!
I have a grid with one cell type “combo” laoded by XML.
------
Servicio
CON
FOR
LAB
----
In action, I write “asdf” in this cell and, it not exists in the xml, but it is correct.
How can I know if the value of this cell is in the list (1 = “CON”, 3 = “FOR”, 4 = “LAB”)???
Bye!
Hello,
in this case you can use onEditCell event. For example:
grid.attachEvent(“onEditCell”,function(stage,rowId,cellIndex,newValue,oldValue){
if(stage ==2 && cellIndex==index){
var combo = grid.getColumnCombo(index);
if(combo.getIndexByValue(newValue)==-1) alert(“this value doesn’t exist in the xml”) ;
}
return true
})
Here index is an index of the “Servicio” column.
Thanks!!!
This solution is perfect!