I have a WHDG with 3 levels. I have an unbound checkbox column for each row in the grid. If I click the checkbox and the band has children, I would like to set all of the child row checkboxes to be checked. Also if I uncheck a parent band, all of the child rows should be unchecked as well.
I am getting an error on the WHDG's CellValueChanged Event.
function CellValueChanged(sender, eventArgs) {var isChecked = false;isChecked = eventArgs.get_item().get_row().get_cell(0).get_element().children[0].checked;}
ERROR: eventArgs.get_item is not a function.
Related to the ERROR: eventArgs.get_item is not a function above, I needed to add a reference to the JQuery file <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> and I moved my JavaScript after the <body> tag.
Hi jdymond,
That is because get_item() is not a member of those event args. If memory serves me correctly, I believe it has get_cell() or getCell(). If you want to find everything, I suggest putting a debugger; statement in the handler and examining the methods available.
regards,David Young