hi,
For select all /deselect all you just write the code in do_prepare_output.
me->typed_context->result->set_selection_mode( cl_bsp_wd_context_node_tv=>selmode_multi ).
Put breakpoint in this code and check whether this event is trigger r not..
Regards,
gopi