Login Register

enable

Gray-out/Disable Specific TreeNodes

I am totally new to dojo and have been asked if I can help a team that is trying to use a tree widget for navigation. We are trying to figure out how to get a tree widget to display some nodes as grayed out (disabled) with others still enabled. I want to be able to display all the nodes, rather than to have nodes simply not displayed. When the user tries to click on the disabled nodes, nothing will happen. Likewise, when the user hovers over them, they should not become highlighted.

I have searched the forum and other sources but haven't found anything that seems to fit our need.

Disabling and enabling html input tag

Situation: The form submit button is at first disabled. Later, it needs to be enabled.

Problem: setAttribute doesn't work as intended.

Additional clarification: In theory, these two lines should work same:

document.addPage.akcija.disabled=false;
dojo.byId("akcija").setAttribute("disabled", false);

In practice, the first one works, the other doesn't. Here are console printouts:

document.addPage.akcija.disabled=false;

Syndicate content