Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1329
CellValueChanged - Checkbox Click Iterate Child Items on Client
posted

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.

Parents
No Data
Reply
  • 1329
    posted

    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.

Children