Hi,
I’m using the latest nightly build and I’ve an issue with validation in a ListGrid.
e.g.
isc.ListGrid.create({
ID: "exampleLG",
dataSource:"exampleDS",
validateByCell:true,
fields:[
{name:"myInput", type:"text",
validators:[{type:"custom", condition:"checkInput(value);",
errorMessage:"Error"}]},
{name:"active", type:"checkbox"}
],
rowEditorExit: function (editCompletionEvent, record, newValues, rowNum)
{
if (record.active)
if (exampleLG.validateCell(rowNum, "myInput"))
alert("myInput is OK");
else
alert("myInput is NOT OK");
}
});
The ListGrid is filled in advance by a Database. I like to edit the “active” checkbox and in the following validate the “myInput” column, if active equals TRUE. In this case, validateCell function returns always TRUE!? (Yes, checkInput() works fine). Is it not possible to validate a none changed field, which comes from the Database?