0

I am working on lazyTreeGrid in dojo and so far I have managed to place checkboxes.

However,when I select a checkbox of a parent node or a folder , I need all the children nodes checkboxes to be automatically checked.How should I go about this?

This is what I have achieved so far.

http://jsfiddle.net/vay4R/

Thanks for the help!

Harsha Venkataramu
  • 2,887
  • 1
  • 34
  • 58

1 Answers1

0

You should fire a method to the onChange of those items. Implements checking all children in the method. And the onChange would execute recursively.

LazyChild
  • 84
  • 4
  • The `checkboxes` are inserted into the `lazyTreeGrid` by just using a `formatter`(creating a new `checkbox` element and appending it to the first column of each row). So,you see,an `onChange` event won't be capable of getting the `children` elements. – Harsha Venkataramu Dec 30 '12 at 15:35
  • @harsha The `onChange` method would be executed when changed. When it is changed those `checkboxes` should already be children of it (already appended). – LazyChild Dec 30 '12 at 17:33