CheckBox Cell -- Help Needed!!
Can someone please walk me through how one would add a Checkbox to the grid. A simple example would be very helpful. Bascially the goal here is to allow user to use checkbox instead of multi-select by highlighting rows.
Alex, your response here would be greatly appreciated!
Thanks in advance!
GuiBuilder
March 29,
Adding the check box is pretty straight-forward and depends upon how you feed data to the grid.
If your data is inline (js above the </head> tag) you can do it like this:
var myData = [
["<input type='checkbox' name='cb1' value='row1'>","Microsoft Corporation", "314,571.156", "32,187.000", "55000"]
];
Similar procedure if using an external file for data input.
To trap selected rows requires that you write the event handler and store the trapped values, then process them for whatever you want to do. Basically, you haven't provided enough information to establish postclick processing so it's hard to know what you want to do with the selected rows.
brians
March 31,
How do we retrieve back the value of check box from the grid?
what is the exact code in this case?
sahil
April 27,
Do you have the grid within a form tag?
Andreas
April 28,
I also need to use checkboxes,
i know how to do what you just showed me. but i want to be able to sort by checkbox value (1 or 0) so if you click it all the selected rows will go to the top, etc...
I am not that advanced with javascript to write a event. could someone please help me ???
mitch
November 2,