I an using the "rowdeselect" for saving the row data when the user tabs off to a new row in the GRID. I want to add some validation to check if the certain fields are populated before the row is sent to the database.
Let's say if a user clicks the ADD btn and tabs off the record in which case the rowRecord.dirty will be false ( where var rowRecord = sm.getSelected()
I want to show an alert statement and force the user to go back to the row where they left the mandatory fields empty.
How can I ;
1) reject the rowdeselect event that was fired?
2) Is there a better way of doing this?