Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > TreeView & a indeterminate checkbox

Reply
Thread Tools

TreeView & a indeterminate checkbox

 
 
jose
Guest
Posts: n/a
 
      02-05-2004
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;
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying Checkbox in indeterminate state through code behind fil =?Utf-8?B?VmlkZHM=?= ASP .Net 0 03-02-2006 09:47 AM
jprogressbar indeterminate mode tiewknvc9 Java 4 02-23-2006 04:09 PM
Q: Reading indeterminate pointer -> Ref to Std? Jakob Bieling C++ 1 02-20-2005 02:41 PM
indeterminate value leading to undefined behavior? Mantorok Redgormor C Programming 3 01-28-2004 10:32 AM
Hidden read of indeterminate memory Holger Hasselbach C Programming 19 12-24-2003 12:56 AM



Advertisments