Hi,
I am using the Radgrid's client-Events -> Oncommand handler to add some validations to a button before it is submitted, it works fine and was able to cancel the event when a criteria is not met, but for some buttons like the "Delete" button where I didnt add any validations, the itemindex that is passed on my server side OnItemCommand event handler is always zero. Is this supposed to be the case? How do I pass the itemindex argument? I tried to do a firecommand (args.get_commandName(), args.get_commandargment()) but it returns an out of memory exception. Please see below code that I have for the raisecommand
function raisecommand(sender,args){
if (args.get_commandName=="ViewDetails"){
<<some validations here>>
args.set_cancel(true);
}
}
Thanks
I am using the Radgrid's client-Events -> Oncommand handler to add some validations to a button before it is submitted, it works fine and was able to cancel the event when a criteria is not met, but for some buttons like the "Delete" button where I didnt add any validations, the itemindex that is passed on my server side OnItemCommand event handler is always zero. Is this supposed to be the case? How do I pass the itemindex argument? I tried to do a firecommand (args.get_commandName(), args.get_commandargment()) but it returns an out of memory exception. Please see below code that I have for the raisecommand
function raisecommand(sender,args){
if (args.get_commandName=="ViewDetails"){
<<some validations here>>
args.set_cancel(true);
}
}
Thanks