Re: ttk::treeview - another question



"Jeff Godfrey" <jeff_godfrey@xxxxxxxxx> wrote in message
news:MhPei.36$Zx4.18@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

"Joe English" <jenglish@xxxxxxxxxxxxx> wrote in message
news:f5fk680n9h@xxxxxxxxxxxxxxxxxxxx
Jeff Godfrey wrote:

Is it possible to "disable" an item in a treeview? I'm using a
treeview as the UI navigation for accessing categories of
application
options. If possible, I'd like to "disable" some of the categories
based on the application state. Looking at the docs, it seems
there's
currently no mechanism for this?

This sounds like a good use case for item tags.

Thanks Joe,

I'll give that a try and let you know how I get along.

Hi Joe,

I've done a bit of experimentation with this. While it may be
possible to get what I need via your suggestions, I think it's likely
more trouble than it's worth right now. I say that because the app in
question also uses "treectrl" (in other parts of the GUI), which
already has the abilities I need "out of the box". That said,
treectrl is *way* more widget than I need in this application, and I
had hoped to completely replace it with treeview. Unfortunately, I'm
kind of on a tight schedule (who isn't, huh?) and don't really have
time to coerce treeview into working as I need.

In my brief testing, it seems that one sticky spot for treeview in
this case will be getting the tree navigation right. That is, I'd
think the inactive nodes should be skipped during traversal. While
I'd assume that can be rewired in my code, I just don't have the time
to "get it right" right now.

As a future enhancement, it'd be great if each item supported a
"-state" option so they could be simply disabled and still do the
right thing(s)...

Thanks,

Jeff


.



Relevant Pages

  • Re: ASP.NET Treeview selectedNodeStyle
    ... Your solution result in a postback to do the navigation. ... fired for the TreeView which is also a problem. ... my customTreeNode class, and in the Treeview's selectedNodechanged event, I ... public string NavUrl ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Save the state of a TreeView
    ... You say "you can consider use separate frame pages to hold the TreeView ... navigation menu". ... Microsoft MSDN Online Support Lead ... I have a DataSource and a TreeView that I am rebinding. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Remove link from treeview
    ... the treeview to show the site map but use a second control for ... navigation. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: asp.net 2.0 menu client script error 0.cells null
    ... Our web application uses an asp.net 2.0 menu and sitemap for navigation. ... The page has an asp.net 2.0 treeview control on it. ... original position just before the above problem manifests. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ttk::treeview question
    ... haven't found any way to adjust that by poking around the layout of the ... I could always change this application to use treectrl, though this is such a simple case for a tree that I hate to be burdened with treectrl's heavy-weight API. ... Treeview is just *so* close to what I want in this case, I'll probably go with it as-is if needed, until I get more time and/or energy to make the change. ...
    (comp.lang.tcl)

Loading