Hello. We are using a RadFormDecorator on our pages. What we want to do is that when you change the value of DownDown #1, you change the background color of DropDown #2. We need to do this on the client side to prevent an unnecessary postback.
We cannot figure out how to do this. Here is the code:
This code has no effect. Note that when I do Telerik.Web.UI.RadFormDecorator.set_enabled(moveType, false) - the control disables just fine. I just can't get the color changed.
Does anyone know how to do this? Thanks in advance for the help.
We cannot figure out how to do this. Here is the code:
var
eventType = $get(
"<%=ddlEventType.ClientID %>"
);
var
moveType = $get(
"<%=ddlMoveType.ClientID %>"
);
var
decorator = Telerik.Web.UI.RadFormDecorator.getDecoratedElement(moveType);
if
(eventType.options[eventType.selectedIndex].text ==
"foo"
) {
decorator.style.backgroundColor =
"blue"
;
}
else
{
decorator.style.backgroundColor =
"blue"
;
}
This code has no effect. Note that when I do Telerik.Web.UI.RadFormDecorator.set_enabled(moveType, false) - the control disables just fine. I just can't get the color changed.
Does anyone know how to do this? Thanks in advance for the help.