I want to be able to display only files that are not set to hidden by the OS.
How do I filter files that are hidden? I'm using the filter example, but it looks like there is no attribute or property of Hidden.
3 Answers, 1 is accepted
0
Dobromir
Telerik team
answered on 22 Jun 2010, 10:31 AM
Hi David,
In order to filter the hidden files, the ResolveDirectory() method should be overriden. You can check the attributes of a file using FileInfo Class, e.g:
DirectoryItem result = newDirectoryItem(oldItem.Name, oldItem.Location, oldItem.FullPath, oldItem.Tag, oldItem.Permissions, visibleFiles.ToArray(), oldItem.Directories);
returnresult;
}
I hope this helps.
Kind regards,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
Can you provide a little more details on the exact scenario in which the issue occurs? Are you implementing a FileSystem or FileBrowser content provider? Would it be possible to send us an isolated version of your code, so we can examine the problematic behavior and configuration on our side?
Regards,
Vessy
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.