Disabling a checkbox template
I am placing a AW.Templates.Checkbox inside of a header template on the 0th column and I am wondering how to make it appear disabled?
I can do:
var test = new AW.Templates.Checkbox; test.setAttribute("disabled", "disabled");
This will disable the checkbox fine but I want it to show up greyed out and unclickable to the user. I saw in another post that you can do this:
var disabled = new AW.Grid.Header; disabled.onMouseOver = null; disabled.onMouseOut = null; obj.setHeaderTemplate(disabled,0);
So I attempted this:
var test = new AW.Templates.Checkbox; test.setAttribute("disabled", "disabled"); test.onMouseOver = null; test.onMouseOut = null;
If there is no way to get it to show up greyed out. How do I go about setting the onclick event to null?
test.onClick = null; test.onMouseClick = null; test.onclick = null;
and none of them work. While it doesn't do anything when the user clicks on the checkbox in it's current state. It would be nice if when the user clicked on it, nothing appeared to happen.
Any help would be appreciated.