Categories | Question details Back To List | ||
Radiobutton & setVerficator We're using ra_str to get 5 radiobuttons, and one of these must be selected before writing to database. But if the 5 radiobuttons are the last five columns in the grid, the grid will write to the database when the last column before the radiobuttons are clicked. Is it possible to tell the grid/dataprocessor, don't write to database if the user hasn't selected one of the five radiobuttons? Answer posted by dhxSupport on Jun 16, 2009 09:11 Unfortunately there is no oppotunity to use setVerificator method for the "ra_str" row. You can use "onBeforeUpdate" event and check if any of the radio button are selected. This event occurs before data sending to the server, occurs for each row. myDataProcessor.attachEvent("onBeforeUpdate",function(id,status){ //any custom code here return true } Parameters: row id; row status - {string} updated,inserted,deleted. |