Disable Sorting when Checkbox in Column Header is Checked/Unchecked
Disable Sorting when Checkbox in Column Header is Checked/Unchecked
tcbeaton
Posts: 16Questions: 0Answers: 0
I previously posted this, had a work-around, but the client would like the checkboxes in the header.
I have added a check box in the header to show/hide additional columns of the table. When the check box is clicked, the column is sorted; is there any way to disable the sorting of the column if the checkbox is changed, but to still sort if the text is clicked (normal operation)?
I've tried placing "return false" in the onClick (as shown below), but the sort appears to happen prior to the onClick. Using "bsort:false" is not an option, since it would disable sorting of the column all together.
Thanks for the help.
[code]
Core POP
[/code]
I have added a check box in the header to show/hide additional columns of the table. When the check box is clicked, the column is sorted; is there any way to disable the sorting of the column if the checkbox is changed, but to still sort if the text is clicked (normal operation)?
I've tried placing "return false" in the onClick (as shown below), but the sort appears to happen prior to the onClick. Using "bsort:false" is not an option, since it would disable sorting of the column all together.
Thanks for the help.
[code]
Core POP
[/code]
This discussion has been closed.
Replies
Allan