Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > Windows Explorer Demo

Not answered Windows Explorer Demo

Feed from this thread
  • Christian Loepp avatar

    Posted on Aug 25, 2011 (permalink)

    I have followed the Windows Explorer Treeview demo you have and everything works fine except that my Directory objects never have the expansion sign next to it, even though they all have sub folders and files.  I have tried troubleshooting many different things.  For example, in the Style Selector I made Directory use the Drive style because its expander works.  But it makes no difference.  The Style is definitely being used as I have tested it.  Does it have to do with it being on a Windows 7 box?  I ran the program as an Administrator as I was desperate and it had no effect.

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Aug 29, 2011 (permalink)

    Hello Christian Loepp,

    Can you please open a support ticket with a sample solution that demonstrates the issue? That way we will be able to investigate the issue in your scenario further and provide you with possible solutions.

    Thank you in advance.

    Kind regards,
    Tina Stancheva
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Posted on Feb 3, 2012 (permalink)

    Do you know if this was resolved?  I can't find an answer to this.

    Also, it works fine under Win 2003 server, just not Win 7

    Reply

  • Petar Mladenov Petar Mladenov admin's avatar

    Posted on Feb 8, 2012 (permalink)

    Hi James Damour,

     This issue is still not resolved. You can track its progress in this PITS item. Currently, we cannot promise an estimated time frame when this will be resolved.

    All the best,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

  • Buzz avatar

    Posted on Mar 23, 2012 (permalink)

    I had this same problem.

    I noticed when I removed the text color settings from the DirectoryItemStyle, the directories would take on the DriveItemStyle.  I'm no TreeView expert, so I assume it's normal for child tree items to inherit their style from their parent.
    In any case, this gave me the idea that perhaps the DriveItemStyle's IsLoadOnDemandEnabled being bound to IsReady was somehow interfering with the DirectoryItemStyle's IsLoadOnDemandEnabled being set directly to True.

    Taking a shot in the dark, I added a property to Directory called WorkAroundForceTrue and bound DirectoryItemStyle's IsLoadOnDemandEnabled property to that.  I set WorkAroundForceTrue to true in the Directory constructor.

    It works!!

    <Setter Property="IsLoadOnDemandEnabled" Value="{Binding WorkAroundForceTrue}"/>

    public class Directory
    {
        public Directory(string fullPath, string name)
        {
            this.FullPath = fullPath;
            this.Name = name;
            this.WorkAroundForceTrue = true;
            this.Childs = new ObservableCollection<object>();
        }
        public string FullPath
        {
            get;
            set;
        }
        public string Name
        {
            get;
            set;
        }
        public bool WorkAroundForceTrue
        {
            get;
            set;
        }
        public ObservableCollection<object> Childs
        {
            get;
            set;
        }
    }

    Reply

  • Hristo Hristo admin's avatar

    Posted on Mar 27, 2012 (permalink)

    Hi,

    RadTreeView has an issue related to IsLoadOnDemandEnabled when property is set in style without usage of data binding.
    The workaround is simply to provide required value via binding (the binding has a greater priority than style setter).

    Regards,
    Hristo
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > TreeView > Windows Explorer Demo
Related resources for "Windows Explorer Demo"

WPF TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]