Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1230
Update HiddenField on Unbound column cell changed
posted

How can one update hiddenfield value as data in unbound column is added/edited?

I was trying to do it like below but it didnot work. It shows 'undefined', when I try to view the value using alert.

function cellValueChange(sender,args){

 var currentrow=$(this).closest('tr');

if(args.get_cell(2).get_column().get_key() == "Amount"){

currentrow.find("input[name$=hfChangeTo]").val(args.get_cell(2).get_value());

alert(currentrow.find("input[name$=hfChangeTo]").val());

}

}