@Command( [ViewCollapseAll] ) not working in embeded view?

Hi friends,

I have embed a view on form . on vew action bar i have created two buttons 1st for Expand All,2nd for Collaps All.

1st button @Command( [ViewExpandAll] ) is working on that form,But second buttond @Command( [ViewCollapseAll] ) is not working on the form.

      Please advise and tell me altenative solution.