3.2.0

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 ?
Thanks
Carlos
March 12,
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)
March 13,
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.

http://comments.gmane.org/gmane.comp.web.dom.general/1577






Carlos
March 14,

This topic is archived.

See also:


Back to support forum