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
# 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.
# 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