Windows Explorer Demo

6 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 25 Aug 2011 Link to this post

    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.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 29 Aug 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 03 Feb 2012 Link to this post

    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
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 08 Feb 2012 Link to this post

    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 >>
  6. Buzz
    Buzz avatar
    32 posts
    Member since:
    Oct 2010

    Posted 23 Mar 2012 Link to this post

    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;
        }
    }
  7. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 27 Mar 2012 Link to this post

    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 >>
Back to Top
UI for WPF is Visual Studio 2017 Ready