thanks guys, it worked for me, that was my mistake, when calling the api for unchecking i passed 1 instead of 0 in the second parameter. so this means that what all have posted is correct.Thanks a lot for you ppl for your help.