" but no way to have checking of a parent
automatically check the child
nodes"
Even though this isn't built in functionality, you should
be able to do
this with javascript. Additionally, if the parent checkbox
were to
force a postback you could detect what its child nodes are
and auto
select them.
Ian Suttle
-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailto OTNET-WE
B DISCUSS.DEVELOP.COM] On Behalf Of Andy McMullan
Sent: Wednesday, April 19, 2006 6:51 AM
To: DOTNET-WEB DISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] TreeView without PostBack?
> I want certain nodes to be 'selectable', but I want
the control to
hold hte
> selection state so I can get it when I postback an
entire form, not
postback
> immediately (even if it just flickers the user screen).
Is this
possible?
Could you use checkboxes to allow the user to select the
node(s)? I
guess this might not work if you want to limit the user to
selecting
one node.
In general I've found the treeview control to be quite
disappointing.
For example, it includes check box support, but no way to
have
checking of a parent automatically check the child nodes.
And there's
no support for client-side scripting, so if functionality
like that
isn't provided out of the box, you can't easily add it.
===================================
This list is hosted by DevelopMentor(r) http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
===================================
This list is hosted by DevelopMentorŪ http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|