I want certain fields to be required. Is there a property or event that I should use for this?
Assign a required field validator to the column. Then when the user tries to move from the cell, if it's blank or null then validator the error message will pop up below the cell and won't let them tab away. No extra javascript required.
it doesn't work.
If control is editable and add new rows is allowed then used can add new row and validation will not be applied to current row. Here are issues:
1) I have a requiredFieldValidator to a couple of my columns. It does validate when you step into those required cells. However, when I input a data into a required cell, and then add a new row, it doesn't validate the rest of the cells in my last row.
2) Client-side event BeforeExitEditMode, in this function the "cellvalue" is always old value, so we can't build custom validator for a cell.
function UWG_CustomerContact_BeforeExitEditMode(tableName, cellName)
{
var cell = igtbl_getCellById(cellName);
var cellvalue = cell.getValue();
}
we tested it with version started from 2007.1 up o 2008.