CollapseAll not working in Embeded view,Plz help!

Hi friends,

I have embed a view in a form, i am not able to use

@command([viewcollapseall]). Its not working.

Can any body explain me why ,is it happening and resolution of same.

Thanks a ton !!

Regards

Anand