Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tibor on Jan 11, 2008 04:41
open dhtmlx forum
onCheck event not raised.

I set check state with setCheck function, and onCheck event is not raised.
It is also not fired when I check a parent wich triggers checking childs.
It is also not fired when a new node is added, and CHECKED is set in option string.
The event is assigned with attachEvent, and it fires when I click the checkbox.
Answer posted by Support on Jan 11, 2008 06:36
Actually this is correct behavior, "onCheck" event fire only when item was checked by user actions, event will not be generated if checkbox state changed by API call or indirectly ( by changing state of parent|child in case of 3-state checkboxes )

This is actual for other GUI related events ( onOpen, onClick, etc. )
Answer posted by Tibor on Jan 11, 2008 08:43
What is the recommended way of handling checkbox changes?
Answer posted by Support on Jan 14, 2008 03:34