PDA

View Full Version : disable handler for some actions?



Naokai
11 Aug 2009, 2:59 AM
Hi, is it possible to disable the handler of an checkbox? ...


{id: '1', boxLabel: 'Hanswurst', name: 'sales',inputValue:'4', disabled:true,handler:check},

I have about 20 checkboxes in one group, if i now try to change the value of all at once will this cause that the function check is called 20 times... is there a way to avoid this?

Lars

Animal
11 Aug 2009, 3:37 AM
Try using a listener on the check event instead of a handler.

Then you could suspendEvents when setting multiple values.

Naokai
11 Aug 2009, 3:43 AM
Thx Animal, i will try this

Lars