:: Forum >>

Disabling a Button on Parent Disabled....

When trying to disable controls by disabling it's container, the button seems to be not entire disabled visually ( a small right part of it remains as enabled).
I know this is not the right way cause it's events are still firing ( but I need it for a special case)
preferred in js method , but good to know in css as well :-)
how can I do it ?
Monday, March 12, 2007
Just disabling parent will not work in AW 2.0.2 - you have to call setControlDisabled(true) for each AW control.

BTW, do you know if its possible to detect some kind of event when one of the element parents goes into disabled state?
Alex (ActiveWidgets)
Tuesday, March 13, 2007
Thanks Alex,
I'm just trying to apply a style to (visually) show that small piece of the button as it where disabled.
For now using tricks to lock the click event.
Something like:
Button.onClick = function(event){
if (Parent.getControlDisabled()){ return false }
else{ return buttonclickfunction }

Didn't go so far to make a container attribute propagable trough it's childs, but regarding "disable-state-event" this is what i found.


Wednesday, March 14, 2007

This topic is archived.

Back to support forum

Forum search