How to Enable "Select All" and "Deselect All" Control of Table Component?

Dear All,

I am using JSC2 Update 1.

I tried enabling "Select All" and "Deselect All" control from table layout option.

It is showing buttons on the header panel but it is not working

Anyone tried enabling that controls.

Please reply.

Thanks in Advance.

regards,

JOSHMACHINE

[328 byte] By [joshmachinea] at [2007-11-27 10:04:29]
# 1

Hi!

1) Set 'selectMultipleButton' and 'deselectMultipleButton' table's properties to true.

2) Add JavaScript function:

function selectAllRows(selected) {

var table = document.getElementById("formHistory:tableHistory");

table.selectGroupRows(selected);

}

3) Set "setTimeout('selectAllRows(true);', 0)" for 'selectMultipleButtonOnClick' and "setTimeout('selectAllRows(false);', 0)" for 'deselectMultipleButtonOnClick' properties.

Thanks,

Roman.

-Grif-a at 2007-7-13 0:39:36 > top of Java-index,Development Tools,Java Tools...
# 2
hi!Thanks roman for your suggested remedy.I tried your suggested remedy, but it is not working.I dont know why!!!can u please suggest some other remedy if ur knowingthanks again!!!!regards,joshmachine
joshmachinea at 2007-7-13 0:39:36 > top of Java-index,Development Tools,Java Tools...