Hi,
I am using <ClientEvents OnCommand="RaiseCommand" ... />.
When user clicks on Update/Insert command on RadGrid, I need to validate the user entered values of each column of that row. All my controls on the grid or GridComboBoxes. Could you please provide any sample code how to access the column values of the current inserted/updated row on CLIEN SIDE using Java Script. I found the below code, but not able to retrive column values using Java Script on Client.
Appreciate if you could get back to me ASAP.
I am using <ClientEvents OnCommand="RaiseCommand" ... />.
When user clicks on Update/Insert command on RadGrid, I need to validate the user entered values of each column of that row. All my controls on the grid or GridComboBoxes. Could you please provide any sample code how to access the column values of the current inserted/updated row on CLIEN SIDE using Java Script. I found the below code, but not able to retrive column values using Java Script on Client.
Appreciate if you could get back to me ASAP.
<ClientEvents OnCommand="RaiseCommand" ... />
JavaScript
function RaiseCommand(sender, args)
{
//retrieve the current commandName and commandArgument
var result = String.format("CommandName: {0}, CommandArgument: {1}", args.get_commandName(), args.get_commandArgument());
if (<some_custom_condition_not_met>)
{
args.set_cancel(true); //cancel the command
}
}
Many Thanks,
John