I am trying to enable a webImageButton in Javascript when another control on the page is clicked. The image button becomes enabled, but the button's image does not change from the disabled image.
Here is my code:
function enableButton()
{
var img = document.getElementByName("ctl00$RightContentHolder$imgEdit").item(0);
img.disabled = false;
}
Can anyone help me with the code to change the button's image? I am lost!
Nevermind, I found this: it works like a charm.
var img = ig_getWebControlById("ctl00_RightContentHolder_imgEdit")
img.setEnabled(true);
Indeed, all Infragistics products employ a client-side model (CSOM) which is slightly different from what stock HTML controls/elements have. More information on all available client-side methods can be found here:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/WebImageButton_Object_CSOM.html