PDA

View Full Version : [DHTML] Cascade Checkbox



rumpranger
12-22-2007, 08:16 PM
1) CODE TITLE: Cascade Checkboxes

2) AUTHOR NAME/NOTES:
Charles Weiss 2007-12-20

3) DESCRIPTION:
Simple javascript that allows a user to select rows below the current row and place the current rows value in those rows/

4) URL TO CODE: http://www.ftwmarketing.com/blog/programming/javascript/javascript-cascades-part-1

or, ATTACHED BELOW (see #3 in guidelines below):

BYK
12-23-2007, 10:07 PM
Working as explained but I think the method you used(select the row then click the button etc.) is not the best way to face with situations like this.

I suggest you to allow the user to use the [shift] key to select a range of rows. The experience you gained from this script should help you very much with coding the version I suggested if you intend to convert :)

rumpranger
01-05-2008, 05:32 AM
The thing about using shift is that the implementation I created this for is a grid view in a cms, containing about 200 rows per page and ~50 columns per row with other cascading functions for text boxes and drop downs. While we could use the shift, I would rather the user not touch the keyboard at all and still be able to replicate cells to his/her hearts content.

BYK
01-05-2008, 09:08 AM
Then it is a useful way to keep the user away from the keyboard :)