TreeView & a indeterminate checkbox

J

jose

Question on checkboxes in TreeView, for any TreeView
experts out there:

I added this code to treeview.htc. When i set the
current (parent) node to indeterminate, i get a checkbox
with a green solid square inside it. I expected
indeterminate to be the same "check" + lightly grayed.
What's wrong?

var cb = el.subtree.all.item("_cb", 0);
... //code to check if i need to make the current
//node indeterminate
if ( allchecked )
{
cb.ThreeState = false;
cb.indeterminate=false;
}
else
{
cb.ThreeState = true;
cb.indeterminate=true;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top