Modifield method in dialog

Hi friends,

I created more than 5 check boxes to select some options. instead of selecting all the check boxes each time I would like to put one more check box like ‘Select all’. when im clicking that all other check boxes should be checked.

How should i achieve this. I tried with Dialogselectcontrol() but i dont know how should i use this.

Pls advice me to get this,



Please refer the link: